Return to site

How to encrypt multiple pdf files

broken image
broken image

$ pdftk A=first-file.pdf B=second-file.pdf cat A1-20 B10-35 output mixed-file.pdf Finally, we’ve used page ranges with the different ‘handles’ to define the sequence of pages in the final output file. This enables us to refer to the different ‘handles.’ Otherwise PDFtk is unable to locate the different PDF files.

broken image

Note that unlike previous examples, we’ve also added ‘cat’ to this command. You can only use uppercase letters to define ‘handles’ and we can use multiple letters per handle to create as many handles as we require, for example A, AB, ASD. You can use multiple such ‘handles’ with PDFtk where each ‘handle’ is a separate PDF file. Notice how we’ve used alphabets A and B to identify our two input PDF files. Here is an example that will take 15 pages from one file, and only 20 from the second, where both files are actually more than a 100 pages each, we can do that by using handles.