Gokul's Blog


Leave a comment

Download GhostPDL 1.52:   http://ghostscript.com/releases/ghostpdl-1.52.tar.bz2
Extract it, then build the entire project: it is simple, just open ghostpdl.sln in Visual Studio 2005, then perform a normal build
After the build you will find gxps.exe here: \ghostpdl-1.52\ghostpdl-1.52\xps\obj
Convert your XPS file to PDF format like this: gxps.exe -sDEVICE=pdfwrite -sOutputFile=test.pdf -dNOPAUSE  test.xps
I hope it helps.


Reference Article: http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/b1f15193-3073-4205-b882-c599fcff1559/

gxps.exe -sDEVICE=pdfwrite -sOutputFile=MyFile.pdf -dNOPAUSE "C:\MyFile.xps"


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s