IntroductionI recently have to do a lot of administration stuff. To do that, I often need to manipulate pdf documents, merge them or extract some parts. I wanted to share an extraordinary tool that I recently discover last week : pdtfk
InstallationSystem where the soft is installed : linux desktop 4.9.0-4-amd64 - x86_64 GNU/Linux
apt-get install pdftk
UsageIt is very easy to understand how it works and how to use it. You can find below two commands really useful that I used. The first one is used to merge pdf
pdftk file1.pdf file2.pdf cat output file-result.pdfThe second one is used to extract some page from a document. In the example below, I ask to extract only the page 2 and 3.
pdftk big_file.pdf cat 2-3 output file_with_page_2_and_3.pdfOf course, this tool can do a lot of other things with your pdf. Do not hesitate to read the documentation at https://www.pdflabs.com/docs/pdftk-cli-examples/.You can also find some examples here too. Have a good day, Mirabellette