Skip to main content

Conversions

Grayscale

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

Optimisation

gs \
 -o output.pdf \
 -dNOPAUSE \
 -dBATCH \
 -sDEVICE=pdfwrite \
 -dCompatibilityLevel=1.4 \
 -dPDFSETTINGS=/printer \
 -sPAPERSIZE=a4 \
 -dFIXEDMEDIA \
 -dCompressPages=true \
 input.pdf