WPF to XPS to PDF

时光怂恿深爱的人放手 提交于 2019-11-27 21:25:35

There is an XPS Converter that was included with PDFsharp 1.31. It's a beta version, but AFAIK it supports nearly everything and may work for your needs.

PDFsharp 1.31 can be downloaded from SourceForge or CodePlex.

If a commercial SDK would be an option, there is one company I came across that has a professional XPS to PDF conversion option (and more).

http://www.nixps.com

Warning: I'm not affiliated with this company nor have I tried their products. I have on the other hand heard good things about them.

I use Telerik Reporting which handles document pagination and allows you to create reports in a designer similar to creating a GUI. I decided to just buy a 3rd party product because I didn't want to spend development time writing my own paginator, etc. Also, this tool is probably more bug proof then a custom solution and allows a lot of flexibility for how you want to design your printout/report. In the future if you have more complicated printing or reports required, this tool does a lot more. I do not work for Telerik, but there product is good.

It allows exporting to PDF, Word, Excel, HTML, PowerPoint, PNG, etc. etc.

IMHO, you've got the right idea: XPS is, in my mind, the simplest method of serializing the data into a usable format, especially for conversion.

As for a third party tool, I've a peer (as in, not myself,)who's used CheckPrixa with some measure of success; it's freeware and it offers command line conversions. (i.e. serializing a document and converting a la generated .bat file.)

It also allows you to handle keywords, titles, etc. along with more important items like even pagination.

As far as I'm aware, there are no known discrepancies.

Alternatively, if converting the MSXPS is what's giving you headaches, you might want to look at XpsConverter, it converts MSXPS to OpenXPS, and as a Window's driver, it's available on any machine using .NET 3 and above.

Keep us updated with whatever solution you try, virtual reports are a growing deal.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!