LinuxCommandLibrary

mutool

muPDF command-line tool

TLDR

Convert PDF to images

$ mutool draw -o [page%d.png] [input.pdf]
copy
Extract text from PDF
$ mutool draw -F txt [input.pdf]
copy
Show PDF info
$ mutool info [input.pdf]
copy
Merge PDFs
$ mutool merge -o [output.pdf] [file1.pdf] [file2.pdf]
copy
Extract pages
$ mutool merge -o [output.pdf] [input.pdf] [1-5]
copy
Clean PDF
$ mutool clean [input.pdf] [output.pdf]
copy

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.

SEE ALSO

pdftk(1), gs(1), qpdf(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community