mutool

mutool

TLDR

Convert pages 1-10 into 10 PNG images

>_ mutool convert -o [image%d.png] [file.pdf] [1-10]
copy

Convert pages 2, 3 and 5 of a PDF into text in the standard output

>_ mutool draw -F [txt] [file.pdf] [2,3,5]
copy

Concatenate two PDFs

>_ mutool merge -o [output.pdf] [input1.pdf] [input2.pdf]
copy

Query information about all content embedded in a PDF

>_ mutool info [input.pdf]
copy

Extract all images, fonts and resources embedded in a PDF out into the current directory

>_ mutool extract [input.pdf]
copy

Copied to clipboard
free 100$ digital ocean credit