RubyPDF Blog Open Source,PDF,XPS Convert XPS to PDF in two ways

Convert XPS to PDF in two ways

First,
1. Download GhostPDL 1.54: http://ghostscript.com/releases/ghostpdl-1.54.tar.bz2
2. Extract it, enter xps folder, build xps.
3. After the build you will find gxps.exe in xps\obj
4. Convert your XPS file to PDF format like this: gxps -sDEVICE=pdfwrite -sOutputFile=test.pdf -dNOPAUSE test.xps
gxps also support other format,
ljet4, wtsimdi, bmpmono, bmp16m, bmp32b, bitcmyk, bitrgb, bit, pkmraw, ppmraw, pgmraw, pbmraw, pcx16, pcx256, pcx24b, cljet5, pcxmono, pcxcmyk, pcxgray, pxlmono, pxlcolor, tiffcrle, tiffg3, tiffg32d, tiffg4, tifflzw, tiffpack, tiff12nc, tiff24nc, png16m, pngmono, jpeg, pswrite, pdfwrite, wtscmyk, imdi, nullpage
download the last version gxps here,
http://ghostscript.com/snapshots/gxps-win32.exe
or
http://ghostscript.com/snapshots/win-gxps.exe

Second,
Microsoft XPS Viewer(Integrated into Internet Explorer, version 6.0 or higher). or Microsoft XPS Essentials Pack(aka XPSEP, XPS EP, Opens XPS documents in a stand-alone viewer application) with PDF Printer, for example PDFCreator.

References,
GhostPCL, GhostXPS, Ghostscript and GhostPDF
PdfCreator

btw, I just noticed some body developed XPS2PDF bases on gxps.exe

3 thoughts on “Convert XPS to PDF in two ways”

  1. Did anyone succeed in building gxps.exe?
    I tried it with VS 2005 Express and I doesn’t work. So many errors at building and now windows.h is missing.

    Or can someone send me gxps.exe?
    Many thanks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.