开发者

Does anyone know of a way to easily convert a PDF to a docx format programmatically

开发者 https://www.devze.com 2022-12-19 05:16 出处:网络
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 PD

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开发者_StackOverflow中文版. 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.


Aspose sells .Net converter libraries.


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.


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/


There are a number of converters from PDF to XPS which is a subset of XAML.

[update] some reference links

  • What Is The Structure Of a XPS File
  • XPS or XAML viewer to embed in .NET app?
0

精彩评论

暂无评论...
验证码 换一张
取 消