将XPS转换为PDF的最佳方法(反之亦然)?

时间:2023-02-03 21:08:01

I have XPS documents being generated from XAML User Controls that act as templates. I want to convert the XPS documents into alternative formats, mainly PDF, programmatically with a .NET based API.

我从XAML用户控件生成XPS文档,作为模板。我想将XPS文档转换为替代格式,主要是PDF,使用基于.NET的API编程。

What is the best way to do this?

做这个的最好方式是什么?

5 个解决方案

#1


6  

You can also use ABCpdf PDF Component for .NET . Version 7 can serve your purpose. see http://www.websupergoo.com/abcpdf-12.htm.

您还可以使用ABCpdf PDF Component for .NET。版本7可以满足您的需求。见http://www.websupergoo.com/abcpdf-12.htm。

it provides fully functional trial version unlike NiXPS and almost equally as fast as NiXPS.

它提供与NiXPS不同的全功能试用版,几乎与NiXPS一样快。

#2


3  

The way I have done this in the past is print my XPS file to a PDF printer. I use cutePDF for this. So when you select to print, you print to cutePDF which prints a PDF version.

我过去这样做的方法是将我的XPS文件打印到PDF打印机。我使用cutePDF。因此,当您选择打印时,您将打印到cutePDF,它会打印PDF版本。

I am not sure if this will meet your needs but it has worked well for me in the past.

我不确定这是否符合您的需求,但过去它对我来说效果很好。

#3


2  

If you have OneNote, you can print to OneNote and then export as PDF at least in OneNote 2013. This seems better than having to install another third party tool.

如果您有OneNote,则可以打印到OneNote,然后至少在OneNote 2013中导出为PDF。这似乎比必须安装另一个第三方工具更好。

#4


1  

After much searching, I found this SDK:

经过多次搜索,我找到了这个SDK:

NiXPS

NiXPS

Its kindof expensive but works wonderfully. Goodbye fop!

它的价格昂贵但功能非常好。再见了!

#5


0  

If you want to do this in your own program, CloudConvert has a free and open source API built on the .NET framework by MadScripter.

如果您想在自己的程序中执行此操作,CloudConvert有一个免费的开源API,由MadScripter构建在.NET框架上。

https://github.com/MadScripter/CloudConvert-.NET-Wrapper/

https://github.com/MadScripter/CloudConvert-.NET-Wrapper/

#1


6  

You can also use ABCpdf PDF Component for .NET . Version 7 can serve your purpose. see http://www.websupergoo.com/abcpdf-12.htm.

您还可以使用ABCpdf PDF Component for .NET。版本7可以满足您的需求。见http://www.websupergoo.com/abcpdf-12.htm。

it provides fully functional trial version unlike NiXPS and almost equally as fast as NiXPS.

它提供与NiXPS不同的全功能试用版,几乎与NiXPS一样快。

#2


3  

The way I have done this in the past is print my XPS file to a PDF printer. I use cutePDF for this. So when you select to print, you print to cutePDF which prints a PDF version.

我过去这样做的方法是将我的XPS文件打印到PDF打印机。我使用cutePDF。因此,当您选择打印时,您将打印到cutePDF,它会打印PDF版本。

I am not sure if this will meet your needs but it has worked well for me in the past.

我不确定这是否符合您的需求,但过去它对我来说效果很好。

#3


2  

If you have OneNote, you can print to OneNote and then export as PDF at least in OneNote 2013. This seems better than having to install another third party tool.

如果您有OneNote,则可以打印到OneNote,然后至少在OneNote 2013中导出为PDF。这似乎比必须安装另一个第三方工具更好。

#4


1  

After much searching, I found this SDK:

经过多次搜索,我找到了这个SDK:

NiXPS

NiXPS

Its kindof expensive but works wonderfully. Goodbye fop!

它的价格昂贵但功能非常好。再见了!

#5


0  

If you want to do this in your own program, CloudConvert has a free and open source API built on the .NET framework by MadScripter.

如果您想在自己的程序中执行此操作,CloudConvert有一个免费的开源API,由MadScripter构建在.NET框架上。

https://github.com/MadScripter/CloudConvert-.NET-Wrapper/

https://github.com/MadScripter/CloudConvert-.NET-Wrapper/