Postscript to JPEG Conversion

The routine that uses Ghostscript to convert postscript output into JPEG uses the following 7 parameters:

  1. ps2jpg (name of Ghostscript instance, always ignored)

  2. -dNOPAUSE

  3. -r200 (default resolution of 200 pixels per inch)

  4. -dJPEGQ=75 (jpeg quality level)

  5. -sDEVICE=jpeg

  6. -sOutputFile=[postscript file path]

  7. [PDF output file path]

where:

When the report is set to landscape orientation, the following parameters are also included:

  1. -c

  2. <</Orientation 3>> setpagedevice

  3. -f

See the Ghostscript Usage and JPEG File Format documentation for details on the above parameters.