psfrem(1)

πŸ“¦ version 1.2, in nixos 26.05, nixpkgs unstable

πŸ’– 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 in dir. This option may be specified more than once. This option is also passed to gs.
  • -dvar[=val] β€” define PostScript variable name (with value val). This option is passed directly to gs(1).
  • -r β€” do reduce/embed fonts. Without this option, just embed resources.
  • -xFont β€” do not dump/embed Font, which must be the PostScript font name (something like Times-Roman or FreeMono).
  • -aFont β€” embed Font completely, 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