Files
oam/knowledge base/pdftk.md
2023-07-09 20:48:18 +02:00

1.4 KiB

PDFtk

Table of contents

  1. TL;DR
  2. Combine multiple files
  3. Rotate a file
  4. Further readings

TL;DR

# combine multiple files
pdftk file1.pdf file2.pdf file3.pdf cat output newfile.pdf

# rotate a file
pdftk file.pdf cat 1-endleft output newfile.pdf

Combine multiple files

pdftk file1.pdf file2.pdf file3.pdf cat output newfile.pdf

where:

  • file{1..3}.pdf are the input file
  • cat is the operation on the files
  • output is the operation after the read
  • newfile.pdf is the new file with the result

Rotate a file

pdftk file.pdf cat 1-endleft output newfile.pdf

where:

  • file.pdf is the input file
  • cat is the operation on the file
  • 1-end is the range of pages on which execute the rotation
  • left is the direction of the rotation
  • output is the operation after the read
  • newfile.pdf is the new file with the result

Further readings