Ghostscript Features
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:
- PNG (different depth, with/without alpha)
- JPEG (jpeg is not supported in scribus image-export, would be nice to have for small web-files)
- XCF (native Gimp Imageformat -> http://www.ghostscript.com/doc/current/Devices.htm#XCF )
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 .