qpdf Examples: Merging, Splitting, Compressing PDF Files

qpdf Examples: Merging, Splitting, Compressing PDF Files

Last updated:
Table of Contents

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

Select one page

You have a file multipage.pdf and you want to extract the first page into a new file page1.pdf:

$ qpdf multipage.pdf --pages . 1 -- page1.pdf

Select multiple pages

You have a file multipage.pdf and you want to extract pages 1 to 5 page into a new file pages1-5.pdf:

$ qpdf multipage.pdf --pages . 1-5 -- pages1-5.pdf

Compress PDF file

TODO

Merge multiple pages into one file

TODO

Add password fo file

Add password "foobar to file file-no-passwd.pdf file-with-passwd.pdf:

$ qpdf --encrypt foobar foobar 128 -- file-no-passwd.pdf file-with-passwd.pdf

Remove password from file

TODO

Dialogue & Discussion