less than 1 minute read

install the following program: pdftk

  • simple cutting: pdftk myDocument.pdf cat 1-9 26-end output removedPages.pdf
  • cutting multiple files: pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf
  • viewing + editing pdf metadata:
    • view: pdftk input.pdf dump_data output metadata.txt
    • edit: vim metadata.txt
    • make consistent: pdftk input.pdf update_info metadata.txt output output.pdf

https://www.pdflabs.com/docs/pdftk-cli-examples/

https://www.maketecheasier.com/combine-multiple-pdf-files-with-pdftk/

http://www.onurguzel.com/changing-pdf-metadata-under-linux/