Skip to content

PDFtk

Usage

Rotate all of the pages clockwise

pdftk [input] cat 1-endeast output [output]

Extract a page range of a PDF

To extract a page range of a PDF you could print to file using evince selecting a page range. The drawback of this method is that the text might be converted to images an thus no longer be searchable. A faster alternative that also keeps the text intact is using pdftk as follows:

pdftk {original.pdf} cat {range_start}-{range_end} output {output.pdf}

where {range_start} is the first page number of {original.pdf} to be included in {output.pdf} and {range_end} the last one.

Reference

Docker images