pdftk – a kind command line tool to manage pdf files

pdftk is a useful command line tool to manage pdf files.

It permits operations like:

  • to split a document in pages,
  • to merge several documents,
  • to extract pages,
  • to remove pages,
  • to rotate pages,
  • to apply background watermark,
  • to decrypt or encrypt a document

Some examples:

pdftk doc.pdf burst

will split the document in its pages generating several named as pg_0001.pdf, pg_0002.pdf etc…

pdftk pg_0001.pdf pg_0002.pdf cat output tets.pdf

will concatenate two documents

pdftk pg_0001.pdf cat 1east output tets.pdf

will rotate a page