使用OPENXML和PDFCreator的在c#转换DOCX到PDF [英] Converting docx to pdf using openxml and pdfcreator in c#

查看:961
本文介绍了使用OPENXML和PDFCreator的在c#转换DOCX到PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要DOCX转换为PDF文件中的服务器。我见过的PDFCreator会做,基于以下链接( http://sourceforge.net/projects/pdfcreator/)。

I need to convert docx to pdf file in server. I have seen PDFCreator will do, based on below link(http://sourceforge.net/projects/pdfcreator/).

我需要这方面的一些建议,具体如下:

I need some suggestions on this as listed below:


  1. 我可以使用PDF创建在服务器端。

  2. ,而无需创建Word对象,我可以转换使用的PDFCreator API DOCX到PDF文件使用OPENXML。

请给我尽快回复。

推荐答案

您可以使用的 docx4j.NET 到DOCX转换为XSL FO,并从那里,为PDF。或者,实际上,对任何被Apache FOP支持的输出格式。

You can use docx4j.NET to convert a docx to XSL FO, and from there, to PDF. Or, indeed, to any of the other output formats supported by Apache FOP.

请参阅本的样本

docx4j .NET是docx4j的IKVM'd DLL,一个ASL v2的许可的开源项目。

docx4j.NET is an IKVM'd DLL of docx4j, an ASL v2 licensed open source project.

这篇关于使用OPENXML和PDFCreator的在c#转换DOCX到PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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