通常,我会使用Microsoft Office Interop库,但它需要使用COM对象,如果我正在开发Windows Universal应用程序(据我所知)是不可能的。我可以使用哪些替代方法将Word和PowerPoint文件从Windows通用应用程序转换为PDF?谢谢!
答案 0 :(得分:1)
There are a number of 3rd party libraries that will do this for you pretty easily, I have used Synfusion (there's a free version) for a similar workflow with Word, Excel and PDF (not PowerPoint) and while not a huge fan overall of the Syncfusion library (version 11), the Office/PDF stuff has done its job well.
Alternatively, if you're sure you will only be using the latest version of Office docs (extensions ends in X) you should be able to use any of the open office libraries to open the file to read it and use something like itext to export back to PDF. That might be trickier for more complicated documents (like PowerPoint slides).
答案 1 :(得分:0)
Syncfusion似乎是一组很好的组件,即使在我的项目中我只想打印/转换office(.doc和.docx)文档。
你尝试过这个吗?你怎么想:您是否使用免费的" Community Edition",因为我可以真实地想象我们可以免费使用这些库!从免费
使用它有什么缺点