问题描述
作为对企业级服务器端文档生成的调查的一部分,我遇到了Open XML.
As part of an investigation into enterprise level server side document generation I have come across Open XML.
- 对于那些使用过此功能的人,您有多成功?您会推荐吗?
- 您可以将OpenXML直接保存为PDF还是我需要使用第三方组件?
- 如果需要第三方"组件,您使用了哪个组件,并推荐了哪个组件?
谢谢
Gineer
推荐答案
关于Office OpenXML的好处是,它是Microsoft Office的 语言-如果您在办公室生活"中生活Word和Excel(2007年及更高版本),这就是您想要的格式.
The nice thing about the Office OpenXML is that it's the language of Microsoft Office -- if you live your "office life" in Word and Excel (2007 and later), that's the format you want.
能否将OpenXML直接保存"为PDF?不,它需要由某些第三方组件呈现.
Can you "save" OpenXML directly to PDF? No, it needs to be rendered by some third-party component.
如果您正在服务器端进行文档生成,而无需使用Office文档作为输出,则通常使用 iText 或 iTextSharp ,它将直接呈现PDF.
If you're doing document generation on the server side and you don't need to be working with Office documents as output, you'd generally use something like iText or iTextSharp, which would render the PDFs directly.
不过,我还没有使用服务器端组件来完成从Office OpenXML到PDF的转换.
I haven't worked with a server-side component that will do the translation from Office OpenXML to PDF, though.
这篇关于将Open XML保存为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!