Extract

The extract utility extracts objects from PDF files. This can be used to extract resources such as fonts, ICC profiles, images etc.


\begin{lstlisting}
\$ mutool extract
usage: mutool extract [options] file.pdf [object numbers]
-p password
-r convert images to rgb
\end{lstlisting}

Run without any object numbers listed, it will extract all the resources it can find within the file to your local filesystem. It is best to run this in a clean directory!

Alternatively specific resources can be extracted by specifying the PDF object numbers. These can be obtained by using the info utility.