如何使用 Ghostscript 将 XPS 转换为 PDF 或 XPS 转换为 DOC?

发布于 2024-09-26 07:35:37 字数 47 浏览 0 评论 0原文

哪一个是将 XPS 转换为 PDF 和 XPS 转换为 DOC 的最佳第三方库。

Which one is the best third party libary to convert XPS to PDF and XPS to DOC.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

朕就是辣么酷 2024-10-03 07:35:37

虽然 gxps 和 Ghostscript 是一个可能的解决方案,但所接受答案的语法对我来说不起作用。

我能够使用 Ghostscript 和 gxps 使用以下语法:

C:\gxps-871.exe -sDEVICE=pdfwrite -sOutputFile=myfile.pdf -dNOPAUSE myfile.xps

关于选项卡路径完成的一条评论:
gxps 似乎不能很好地理解某些 Windows 7 符号链接,例如“我的文档”。如果您在使用制表符补全路径时遇到问题,请考虑在 c: 中建立一个临时文件夹。

值得赞扬的地方:我从这个博客中得到了这个语法:
http://minhtech.com/windows/convert-xps- to-pdf-without-printer-driver/

While gxps and ghostscript are a possible solution, the syntax of the accepted answer did not work for me.

I was able to use ghostscript and gxps using the following syntax:

C:\gxps-871.exe -sDEVICE=pdfwrite -sOutputFile=myfile.pdf -dNOPAUSE myfile.xps

One comment on tab path completion:
gxps doesn't seem to understand some of the Windows 7 symbolic links like My Documents well. If you have trouble tab-completing to your path, consider a temp folder in c:.

Credit where credit is due: I got this syntax from this blog:
http://minhtech.com/windows/convert-xps-to-pdf-without-printer-driver/

人事已非 2024-10-03 07:35:37

XPS 转 PDF:
您可以使用 GhostXPS(GhostPDL 的一部分):

gxps.exe ^
 -o output.pdf ^
  c:/path/to/input.xps

XPS to PDF:
You can use GhostXPS (part of GhostPDL):

gxps.exe ^
 -o output.pdf ^
  c:/path/to/input.xps
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文