开发者

How can I use Ghostscript to convert XPS to PDF or XPS to DOC? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this quest开发者_如何学Cion will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

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


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/


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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜