Revision of Examples from Mon, 05/25/2009 - 16:25

Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.

Usage examples for Ghostscript.

"Normalize" a PDF

gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=output.pdf input.pdf

PDF to EPS
http://pages.cs.wisc.edu/~ghost/doc/svn/Use.htm#Output_device

gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=epswrite -sOutputFile=output.eps input.pdf

-dNOCACHE Prevents it from rasterizing fonts!

PDF Presets

-dPDFSETTINGS=_____

Options are: /screen, /printer, /prepress, /default, /ebook.

Color Conversion
http://vince-debian.blogspot.com/2008/05/pdf-conversion-to-grayscale.html

Color PDF to greyscale:

gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \
-sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray \
-sOutputFile=output.pdf input.pdf

Color PDF to CMYK:

gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \
-sColorConversionStrategy=CMYK -dProcessColorModel=/DeviceCMYK \
-sOutputFile=output.pdf input.pdf

PDF to JPEG

gs -q -dBATCH -dNOPAUSE -dFirstPage=1 -dLastPage=1 -sDEVICE=jpeg \
-r<OUTPUT RESOLUTION> -sOutputFile=<OUTPUT>.jpg <INPUT>.pdf

Recent Updates

  • 2 years 1 week ago
  • 2 years 1 week ago
  • 2 years 1 week ago
    php 8.x
  • 2 years 1 week ago
    10.6.7
  • 2 years 2 weeks ago
    Drop Centos 5/6 stuff