Skip to content

Instantly share code, notes, and snippets.

@akanik
Created May 30, 2018 20:12
Show Gist options
  • Select an option

  • Save akanik/7c9a7da28320148bc0ebc87b8631c971 to your computer and use it in GitHub Desktop.

Select an option

Save akanik/7c9a7da28320148bc0ebc87b8631c971 to your computer and use it in GitHub Desktop.
Extract pages from a pdf into another pdf
# https://www.commandlinefu.com/commands/view/9002/extracting-a-range-of-pages-from-a-pdf-using-ghostscript
# commandline
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=14 -dLastPage=17 -sOutputFile=OUTPUT.pdf ORIGINAL.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment