Skip to content

Instantly share code, notes, and snippets.

@rodrigomelo9
Last active December 30, 2020 01:35
Show Gist options
  • Save rodrigomelo9/9cb486449ec4b9eb1ff2c36bc3305dde to your computer and use it in GitHub Desktop.
Save rodrigomelo9/9cb486449ec4b9eb1ff2c36bc3305dde to your computer and use it in GitHub Desktop.

Join:

gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=newfile.pdf file1.pdf file2.pdf

Split:

gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dFirstPage=15 -dLastPage=30 -sOutputFile=newfile.pdf origfile.pdf

Compresssion:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment