How To Install Pdftk In Debian, Ubuntu, Alpine, Kali And Raspbian?

How To Install Pdftk In Debian, Ubuntu, Alpine, Kali And Raspbian?

pdftk

PDF toolkit.

Maintainer: Johann Felix Soden



Section: text

Install pdftk

  • Debian apt-get install pdftk Click to copy
  • Ubuntu apt-get install pdftk Click to copy
  • Alpine OS apk add pdftk Click to copy
  • Kali Linux apt-get install pdftk Click to copy
  • Raspbian apt-get install pdftk Click to copy

PDF toolkit.

How to use pdftk?

Below are few example commands for pdftk that you can use in the terminal.

Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one:
pdftk input.pdf cat 1-3 5 6-10 output output.pdfClick to copy
Merge (concatenate) a list of PDF files and save the result as another one:
pdftk file1.pdf file2.pdf … cat output output.pdfClick to copy
Split each page of a PDF file into a separate file, with a given filename output pattern:
pdftk input.pdf burst output out_%d.pdfClick to copy
Rotate all pages by 180 degrees clockwise:
pdftk input.pdf cat 1-endsouth output output.pdfClick to copy
Rotate third page by 90 degrees clockwise and leave others unchanged:
pdftk input.pdf cat 1-2 3east 4-end output output.pdfClick to copy
Installation of latest pdftk command is available for Debian, Ubuntu, Alpine, Kali and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2024 latest package from the repository and install it in your computer/server.