Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 986
Dhyanesh Avatar asked Oct 08 '10 11:10

Dhyanesh


2 Answers

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/

like image 162
Keith Hoffman Avatar answered Nov 19 '22 23:11

Keith Hoffman


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

gxps.exe ^
 -o output.pdf ^
  c:/path/to/input.xps
like image 29
Kurt Pfeifle Avatar answered Nov 20 '22 00:11

Kurt Pfeifle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!