无需互操作即可将Office文档转换为PDF [英] Convert Office-Documents to PDF without interop

查看:88
本文介绍了无需互操作即可将Office文档转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以将Word-Documents(* .doc,* .xls,* .vsd ...)转换为PDF或TIF,JPEG ...无Office?



thx,

Benny

解决方案

我明白你没有想要使用任何专有软件,如Microsoft Office及其原因。我所知道的唯一开源代码是OpenOffice本身(其中.odt来自)和它的 fork LibreOffice。请参阅:

http://en.wikipedia.org/wiki/OpenOffice.org [ ^ ],

http://www.openoffice.org/ [ ^ ],

http:// en.wikipedia.org/wiki/LibreOffice [ ^ ],

http://www.libreoffice.org/ [ ^ ]。



您可以下载源代码并查找代码使用几乎所有版本的Office文档。当然,.ODT和所有其他OpenOffice / LibreOffice文档。



如果您只想支持较新的Office Open XML,则格式本身可用,根据ECMA-376和ISO / IEC 29500:2008标准化:

http://en.wikipedia。 org / wiki / Office_Open_XML [ ^ ],

http://en.wikipedia.org/wiki/Office_Open_XML_software [ ^ ]。



请参阅Office Open XML软件的对比图:

http://en.wikipedia.org/wiki/Comparison_of_Office_Open_XML_software [ ^ ]。



由于某些源代码可用且已打开,您可以使用它。



最后,当你设法从Office文档中获取数据时,可以将其映射到PDF结构。要生成PDF本身,您可以使用iText的.NET端口;这个端口叫做iTextSharp:

http://en.wikipedia.org/wiki/IText [ ^ ],

http://itextpdf.com/ [ ^ ],

http://sourceforge.net/projects/itextsharp/ [ ^ ]。



我也提供了iText的链接,因为几乎所有使用iTextSharp的文档都在那里,以Java文档的形式提供。



-SA

Hi,
is it possible to convert Word-Documents (*.doc, *.xls, *.vsd...) to PDF or TIF, JPEG... without Office?

thx,
Benny

解决方案

I understand that you don't want to use any proprietary software like Microsoft Office and why. The only open-source code I know is OpenOffice itself (where .odt came from) and its fork LibreOffice. Please see:
http://en.wikipedia.org/wiki/OpenOffice.org[^],
http://www.openoffice.org/[^],
http://en.wikipedia.org/wiki/LibreOffice[^],
http://www.libreoffice.org/[^].

You can download the source and find the code working with nearly all versions of Office documents. And, of course, .ODT and all other OpenOffice/LibreOffice documents.

If you would like to support only the newer Office Open XML, the format itself is available and is standardized under ECMA-376 and ISO/IEC 29500:2008:
http://en.wikipedia.org/wiki/Office_Open_XML[^],
http://en.wikipedia.org/wiki/Office_Open_XML_software[^].

Please see the comparison chart on Office Open XML software:
http://en.wikipedia.org/wiki/Comparison_of_Office_Open_XML_software[^].

As some source code is available and open, you can use it.

And, finally, when you manage to get data from Office documents, you can map it onto PDF structure. To produce PDF itself, you can use the .NET port of iText; this port is called iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

I provided links to iText, too, because nearly all documentation you need to work with iTextSharp is there, provided as Java documentation.

—SA


这篇关于无需互操作即可将Office文档转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆