QPDF: A useful tool for handling PDF files
QPDF is a command-line tool that excels in PDF structure manipulation. It is not a rendering or viewing tool like pdftk, but a powerful utility for tasks such as page extraction, rearrangement, and merging—ideal for scripting and automation. In this post, I demonstrate common QPDF use cases using file1.pdf and file2.pdf. 1. Extract a Range of Pages from file1.pdf To extract pages 3 to 7 from file1.pdf: qpdf file1.pdf --pages . 3-7 -- output.pdf Here, . refers to the current input file (file1.pdf). The result is saved in output.pdf. ...