mutool
muPDF command-line tool
TLDR
Convert PDF to images
$ mutool draw -o [page%d.png] [input.pdf]
Extract text from PDF$ mutool draw -F txt [input.pdf]
Show PDF info$ mutool info [input.pdf]
Merge PDFs$ mutool merge -o [output.pdf] [file1.pdf] [file2.pdf]
Extract pages$ mutool merge -o [output.pdf] [input.pdf] [1-5]
Clean PDF$ mutool clean [input.pdf] [output.pdf]
SYNOPSIS
mutool command [options] files
DESCRIPTION
mutool is the MuPDF command-line tool. It manipulates PDF and other document formats.
The tool renders, converts, and processes documents. Lightweight and fast.
PARAMETERS
COMMAND
Operation to perform.draw
Render document to image/text.info
Show document information.merge
Merge/extract pages.clean
Rewrite PDF file.-o FILE
Output file.--help
Display help information.
CAVEATS
Part of MuPDF. Some features require specific builds. Limited editing capabilities.
HISTORY
mutool is part of MuPDF, a lightweight PDF renderer created by Artifex Software.
