EXTRACTRES(1)

πŸ“¦ version 2026.0, in alpine 3.24

✨ EXTRACTRES(1) ✨

omg hi bestie πŸ’– this is EXTRACTRES(1), a General Commands Manual page, and it's all about a filter that pulls resources out of a PostScript document. No cap.


🌸 NAME 🌸

extractres β€” filter to extract resources from a PostScript document πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

extractres [-m] <document.ps >output.ps

πŸ’– DESCRIPTION πŸ’–

So extractres extracts resources β€” like fonts, procsets, patterns, files, etc β€” that are appearing in a PostScript document. Then it drops appropriate %%IncludeResource comments into the document prologue. The extracted resources get written to files with the same name as the resource, plus an appropriate extension. ✨

And this pipeline:

extractres file.ps | includeres >out.ps

will move every resource that shows up in a document into the document prologue, and it removes redundant copies. After that, you can safely put the output file through page re-arrangement filters like psnup or pstops. Periodt. πŸ’…

The -m option combines resources that have the same name into one file. You literally have to use it for some programs that download fonts a little bit at a time. 😭

πŸ‘‘ AUTHOR πŸ‘‘

This was written by Angus J. C. Duggan. 🫢

🌈 SEE ALSO 🌈

psutils(1)

⭐ TRADEMARKS ⭐

Just so you know, PostScript is a trademark of Adobe Systems Incorporated. πŸ‘‘

πŸ’€ BUGS πŸ’€

extractres does not alter the %%DocumentSuppliedResources comments. So if you were hoping it would, bestie, it literally does not. πŸ™ˆ


mwah πŸ’‹ this page is brought to you by PSUtils, titled EXTRACTRES(1), and the footer has no date, so it's timeless. Stay iconic, bestie. πŸ’–βœ¨

πŸ“¦ where this page comes from