将带有自定义 XML 和结构化文档标签的 DOCX 转换为 PDF
我们目前使用 Ecrion XF 渲染服务器让我们的 Web 服务将 Word 文档转换为 PDF。这些文档包含绑定到结构化文档标签的自定义 XML。
Ecrion 的产品是我们发现的唯一能够做到这一点的软件,但生成的 PDF 的质量很一般。首先,它呈现文档的方式与 Word 不同,其次,由于随机崩溃,它经常创建零字节 PDF,第三,文档中的元素有时会丢失,例如表格。
由于我们需要在服务器端进行转换,因此使用 Office Automation 不是一个选择。 Aspose.Words for .NET 创建了更好的 PDF 文档,但仍然不行不支持将 SDT 绑定到自定义 XML。
有谁知道还有其他产品支持此功能吗?
We currently use Ecrion XF Rendering Server to let our web services convert Word documents to PDF. The documents contain custom XML that is bound to Structured Document Tags.
Ecrion's product is the only software we have found that is able to do this, but the quality of the PDFs generated is mediocre. First of all, it renders the documents differently from Word, secondly it often creates zero byte PDFs because of random crashes, thirdly elements from the documents are sometimes missing, for instance tables.
As we need to do the conversion server side, using Office Automation isn't an option. Aspose.Words for .NET creates much better PDF documents, but still doesn't support binding SDTs to custom XML.
Does anyone know of any other products that support this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
docx4j 对自定义 XML 数据绑定有很好的支持,如果我自己可以这么说的话。
尽管它是开源 Java,但许多人通过 IKVM 在 .NET 环境中使用它。
它还生成 PDF 输出。 PDF 输出并不完美,但确实包含表格,并且不应包含随机崩溃:-) 作为开源,您还可以对其进行修改以解决您遇到的任何问题。
docx4j has good support for custom XML data binding, if I may say so myself.
Although it is open source Java, a number of people use it in a .NET environment via IKVM.
It also generates PDF output. The PDF output isn't perfect, but does include tables, and shouldn't include random crashes :-) Being open source, you could also modify it to address any issues you encounter.