EXTRACTRES(1)
β¨ EXTRACTRES(1) β¨
okay bestie, so extractres is this iconic little tool from the psutils gang, and honestly? it's giving backstage-pass energy for your PostScript files π
πΈ NAME πΈ
extractres β the resource-wrangling bestie you didn't know you needed π«Ά
β¨ SYNOPSIS β¨
extractres [OPTION...] [INFILE [OUTFILE]]
π DESCRIPTION π
So like, extractres goes into a PostScript document and extracts all the resources just chilling in there β we're talking fonts, procsets, patterns, files, etc. π§ Then it drops the appropriate %%IncludeResource comments into the document prologue. Periodt.
The extracted resources get written out to files with the same name as the resource, plus an appropriate extension. Cute, right? π
And then there's this pipeline, which is literally the main character:
extractres file.ps | includeres >out.ps
That one moves all the resources appearing in a document up into the document prologue and clears out the redundant copies. Obsessed. π Once you've done that, your output file can safely go through page re-arrangement filters like psnup or pstops. Slay.
Bottom line: extract resources from a PostScript document.
- INFILE β if it's
-, or if you just don't pass an INFILE at all, it reads from standard input π«Ά - OUTFILE β and if it's
-, or you don't pass an OUTFILE, it writes to standard output β¨
π OPTIONS π
-m,--mergeβ merges resources with the same name into one file. lowkey needed, ngl, like for fonts that get output in multiple blocks π₯-v,--versionβ shows the program's version number and exits. short and sweet π-q,--quietβ don't show progress. no commentary, just vibes π€«
π AUTHOR π
(no author listed in this one, bestie β the page goes straight from OPTIONS to BUGS π)
π BUGS π
extractres does not alter the %%DocumentSuppliedResources comments. that's it, that's the bug. not me being the bearer of bad news π
π«Ά heads up bestie: the%%DocumentSuppliedResourcescomment thing is a real limitation, so don't count onextractresto fix those up for you β it won't touch 'em, fr fr.
and that's the whole page, bestie β this one comes from psutils version 3.3.17, dated 2026-09-08. mwah π go extract some resources, you've got this π
π¦ where this page comes from
- arch rolling: psutils 3.3.17-1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms