Ghostscript Features: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
(Created page with "==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. ==R...")
 
No edit summary
 
Line 25: Line 25:
* JPEG (jpeg is not supported in scribus image-export, would be nice to have for small web-files)
* 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 )
* 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
.

Latest revision as of 13:43, 17 August 2011

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 .