Convert XPS to PDF without Printer Driver via GhostPDLBy Minh • Sep 4th, 2010 • Category: Windows
Here is how to convert XPS documents to PDF without an installed PDF distiller or printer driver.
This is especially useful if you lack Windows administrator privileges, such as on an employer-maintained workstation, and cannot install a PDF application or printer driver. If you have Microsoft Office installed, you can “print” into a XPS document with the Microsoft XPS Document Writer printer driver, and then convert it into PDF for easy distribution.
First, Download GhostPDL:
Go to Ghostscript’s Google Project Home and download the already compiled GhostPDL Windows binaries here. No compiling or installation is required. Simply uncompress the ZIP archive and you are ready to go.
Convert XPS to PDF via Command Line
Open a command prompt by going to Start > Programs > Accessories > Command Prompt, and then use the following syntax. You may also use the run prompt via Start > Run.
C:\gxps-871.exe -sDEVICE=pdfwrite -sOutputFile=myfile.pdf -dNOPAUSE myfile.xps
You may need to use absolute paths. Here I am using the gxps binary installed in the My Documents directory to convert a file on the Desktop.
C:\"C:\Documents and Settings\Minh Nguyen\My Documents\ghostpdl-8.71-win32\gxps-871.exe" -sDEVICE=pdfwrite -sOutputFile="C:\Documents and Settings\Minh Nguyen\Desktop\file.pdf" -dNOPAUSE "C:\Documents and Settings\Minh Nguyen\Desktop\file.xps"