有谁知道一种以编程方式轻松将 PDF 转换为 docx 格式的方法
我们有几个第三方系统可以为我们提供 PDF。我们希望在不使用 Adobe 产品的情况下转换这些 PDF 以在网络上显示。理想情况下,我们希望使用 Silverlight 渲染 PDF,但在从 PDF 转换为 Xaml 或使用 docx 格式作为中间人时遇到困难。有很多图书馆提供 PDF,但这不是我们需要的。
如果有一个库可以执行此操作,那么 .net 库会更好,但如果可以的话,我们也可以使用命令行运行转换。
We have a couple 3rd party systems that give us PDFs. We would like to convert those PDFs for display on the web without using an Adobe product. Ideally we would like to use Silverlight to render the PDFs but are having trouble converting from a PDF to Xaml or using docx format as a middle man. There are lots of libraries that give PDFs but that is not what we need.
If there is a library out there that does this, a .net lib would be preferable but we can run the conversion using the command line as well if that is an option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Aspose 销售 .Net 转换器库。
Aspose sells .Net converter libraries.
将 PDF 转换为 SVG(ghostscript 会做到这一点)并将其作为一系列图像导入:我不是 .net 程序员,但我知道可以使用 system.io.packaging 类来完成,该类是值得的,是由 Mono 项目在 .net 之外实现的。
Convert PDF to SVG (ghostscript will do it) and import that as a series of images: I'm not a .net programmer, but I understand that can be done with the system.io.packaging class, which, for what it's worth, is implemented outside of .net by the Mono project.
另一种选择是,如果您实际上不需要更改 pdf 文档中的任何内容,您可以使用 pdf.js 将 pdf 文档呈现为 html 5。有关更多信息,请参阅此博客文章。
http://andreasgal.com/2011/06/15/pdf-js/
Another option, if you don't actually need to change anything in the pdf documents you can use pdf.js which renders pdf documents as html 5. For more info please see this blog post.
http://andreasgal.com/2011/06/15/pdf-js/
有许多从 PDF 到 XPS 的转换器,XPS 是 XAML 的子集。
[更新]一些参考链接
There are a number of converters from PDF to XPS which is a subset of XAML.
[update] some reference links