Ghostscript Features

From Scribus Wiki
Revision as of 13:43, 17 August 2011 by Stefan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Ghostscript Docs

Ghostscript is used from scribus for stuff like pdf export, maybe raster image export, too (to be checked)

Input File

gs takes Postscript and PDF.

Render to a PDF file

http://www.ghostscript.com/doc/current/Ps2pdf.htm - vast pdf rendering options are available

Render to PDF from Ghostscript via the PDF Output device. Its name on the gs commandline is "pdfwrite". It options are documented in Ps2pdf.htm linked above.


-dCompatibilityLevel=1.x -- PDF version


Render an image

http://www.ghostscript.com/doc/current/Devices.htm#File_formats

Interesting image formats:

Commandline options


-dCOLORSCREEN=false -- no screening

-dDOINTERPOLATE -- interpolate all images, better quality

-dNOSUBSTDEVICECOLORS -- do not change color space (eg. RGB, CMYK stays same)

-dBATCH -- sets batch mode

-dQUIET -- no messages

-dNOPAUSE -- dont stop after each page -dSAFER -- dont execute malicious commands e.g. delete file

-sDEVICE=device -- select the output or in my case, the file format -sOutputFile=filename -- contains processed image or pdf

-c 30000000 setvmthreshold -f -- more memory for VM, more speed for pdf generation .