psfrem(1)
π psfrem(1) π
okay so bestie, this page is psfrem(1) from the General Commands Manual, and it's literally the postscript font and resource embedding utility. it's giving βmake your PostScript doc self-containedβ energy π
β¨ NAME β¨
psfrem β postscript font and resource embedding utility.
π¦ SYNOPSIS π¦
psfrem [options] input-file [output-file]
πΈ DESCRIPTION πΈ
psfrem runs the supplied PostScript document through Ghostscript, gathering font usage information, then it dumps loaded font data from Ghostscript memory and embeds it into the source file. The resulting document is expected to be self-containing, with no dependencies on the fonts installed in a particular postscript device. no cap.
When embedding fonts, psfrem attempts to modify them, leaving only the glyphs used in the document β thus reducing the font size. obsessed.
psfrem also attempts to embed non-font resources in place of %%IncludeResource directives. periodt.
π οΈ USAGE π οΈ
Input file name must be supplied, and it must be a real seekable file. The output will be written to the specified file, or to stdout.
-Idirβ look for resources to embed indir. This option may be specified more than once. This option is also passed togs.-dvar[=val]β define PostScript variable name (with valueval). This option is passed directly togs(1).-rβ do reduce/embed fonts. Without this option, just embed resources.-xFontβ do not dump/embedFont, which must be the PostScript font name (something likeTimes-RomanorFreeMono).-aFontβ embedFontcompletely, do not attempt to remove unused glyphs.-Aβ do embed Adobe core fonts. See NOTES below.-kβ keep temporary files.
π NOTES π
psfrem is meant to be used with u2ps(1). It relies heavily on the input file being well-formed and well-behaved. It may or may not work with arbitrary PostScript input.
psfrem only looks for resource in directories explicitly specified with -I and does not know about standard gs search path. If you need to embed anything from /usr/share/ghostscript, pass relevant directories with -I.
All PostScript interpreters are assumed to have a bunch of standard fonts available (Courier, Times-Roman, Helvetica, Symbol etc), so psfrem does not try to embed those. Glyph coverage beyond basic Latin is not guaranteed for standard fonts however, so it may be necessary to use -A, forcing the fonts available to Ghostscript locally to be embedded instead of relying on whatever the target device has got.
π SEE ALSO π
u2ps(1), gs(1), includeres(1) from psutils package.
and that's the whole page, bestie β the footer's entire personality is psfrem(1), and it understood the assignment. π
π¦ where this page comes from
- nixos 26.05: u2ps 1.2
- nixpkgs unstable: u2ps 1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms