PDF transformation software
Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one
Merge (concatenate) all the pages of a list of PDF files and save the result as a new PDF
Merge (concatenate) given pages from a list of PDF files and save the result as a new PDF
Write each group of n pages to a separate output file with a given filename pattern
Rotate certain pages of a PDF with a given angle
Remove the password from a password-protected file
qpdf [ options ] infilename [ outfilename ]
The qpdf program is used to convert one PDF file to another equivalent PDF file. It is capable of performing a variety of transformations such as linearization (also known as web optimization or fast web viewing), encryption, and decryption of PDF files. It also has many options for inspecting or checking PDF files, some of which are useful primarily to PDF developers.
For a summary of qpdf's options, please run qpdf --help. A complete manual can be found at https://qpdf.readthedocs.io.