Skip to content

Instantly share code, notes, and snippets.

@hoogenm
Created November 16, 2020 20:35
Show Gist options
  • Save hoogenm/e0cc80664b5cddfc51193d395246bb20 to your computer and use it in GitHub Desktop.
Save hoogenm/e0cc80664b5cddfc51193d395246bb20 to your computer and use it in GitHub Desktop.
PDF to rasterized (image) PDF
#!/bin/bash
# Note: filenames are fixed, replace before use
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=ae.pdf ae2.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment