Your company here — click to reach over 10,000 unique daily visitors

extractres - Man Page

extract resources from a PostScript document


extractres [OPTION...] [INFILE [OUTFILE]]


Extract resources from a PostScript document.

-m,  --merge

merge resources of the same name into one file (needed e.g. for fonts output in multiple blocks)


display this help and exit

-v,  --version

display version information and exit

extractres extracts resources (fonts, procsets, patterns, files, etc) appearing in a PostScript document, and puts appropriate %%IncludeResource comments in the document prologue. The extracted resources are written to files with the same name as the resource, and an appropriate extension. The pipeline

extractres file.ps | includeres >out.ps

will move all resources appearing in a document to the document prologue, removing redundant copies. The output file can then be put through page re-arrangement filters such as psnup or pstops safely.

Exit status


if OK,


if arguments or options are incorrect, or there is some other problem starting up,


if there is some problem during processing, typically an error reading or writing an input or output file.


Written by Angus J. C. Duggan and Reuben Thomas.


extractres does not alter the %%DocumentSuppliedResources comments.


PostScript is a trademark of Adobe Systems Incorporated.

See Also

psutils(1), paper(1)

Referenced By

psutils(1), tl-psutils(1).

February 2023 extractres 2.10