Skip to content

Instantly share code, notes, and snippets.

@hinnerk
Last active February 5, 2017 13:42
Show Gist options
  • Save hinnerk/b7a79c4fa329c1ae9a09e3129008008a to your computer and use it in GitHub Desktop.
Save hinnerk/b7a79c4fa329c1ae9a09e3129008008a to your computer and use it in GitHub Desktop.

Ghostscript tricks (run in )

  • render a pdf as png files, to remove all hidden information: gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -r600 -dDownScaleFactor=3 -sDEVICE=png16m -sOutputFile=new-%01d.png original.pdf
  • rebuild a pdf file to remove errors: gs -dPDFA -dBATCH -dNOPAUSE -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=repariert.pdf original.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment