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 %%DocumentSuppliedResources comment thing is a real limitation, so don't count on extractres to 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