includeres <document.ps >output.ps
Includeres includes resources (fonts, procsets, patterns, files, etc.) in place of %%IncludeResource comments in a PostScript document. The resources are searched for under the resource name, and with 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.
Written by Angus J. C. Duggan.
PostScript is a trademark of Adobe Systems Incorporated.
includeres does not alter the %%DocumentNeededResources comments.