aspose.words 处理word转PDF
处理如下:
import com.aspose.words.Document; import com.aspose.words.SaveFormat; import com.platform.custom.util.res.Path; public class WordToPdf { public void execute(String docFileName, String toFileName) { Document doc; try { doc = new Document(Path.UPLOAD_FILES+"/"+docFileName); doc.save(Path.ANNOUNCE_PDF_FILES+"/"+toFileName, SaveFormat.PDF); } catch (Exception e) { e.printStackTrace(); } } }