Skip to content

Instantly share code, notes, and snippets.

@seralf
Last active December 16, 2015 12:08
Show Gist options
  • Save seralf/5431942 to your computer and use it in GitHub Desktop.
Save seralf/5431942 to your computer and use it in GitHub Desktop.
Example command line to extract part of of a PDF file and save pages to a new PDF.
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=1 -dLastPage=10 -sOutputFile=extractedFile.pdf originalFile.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment