pdfmom(1)
π NAME π
okay so bestie, listen: pdfmom β she makes PDF documents from your files using the mom macro package for groff. that's the whole vibe. β¨
π SYNOPSIS π
pdfmom [--roff] [-Tpdf] [groff-options] [file ...]
pdfmom [--roff] -Tps [pdfroff-options] [groff-options] [file ...]
pdfmom -v
pdfmom --version
πΈ DESCRIPTION πΈ
so pdfmom is lowkey a wrapper around groff(1) β she's the friend who handles the paperwork so you can just make PDF documents out of files formatted with the mom macros. iconic behavior honestly. π
if you throw the --roff option at her, the wrapper will work with macro packages other than groff_mom(7) too. and that's also true if you rename the wrapper or link it as a pseudonym β like, say you create a pdfms link that points at the pdfmom executable, congrats, you just made yourself a wrapper for producing PDFs with the ms package. slay. β¨
heads up bestie:pdfmomprints to standard output, so you're gonna have to redirect that to a destination file most of the time. and if you want your final PDF to be all cute and small, pipe the output throughps2pdf(1).
if you call her with the -Tpdf option (which is, btw, the default), pdfmom processes your files using groff's native PDF driver, gropdf(1). but if you give her -Tps, the processing gets passed over to pdfroff, who uses groff's PostScript driver. either way, multiple runs of the source file happen so that any forward references in the document get satisfied. no cap. π¦
pdfmom accepts all the same options as groff. and if -Tps is given, the options associated with pdfroff are accepted as well. when pdfmom calls pdfroff, the options -mpdfmark -mom --no-toc are implied and like, should not be given on the command line. equally, you don't need to supply the -mom or -m mom options when -Tps is absent. periodt. π
a quick rundown of the flags, for the girlies keeping score:
--roffβ lets the wrapper play nice with macro packages other thangroff_mom(7).-Tpdfβ processes files with groff's native PDF driver,gropdf(1). this is the default, so if you do nothing, this is what you get. main character energy.-Tpsβ hands processing over topdfroff, which uses groff's PostScript driver. also opens you up to thepdfroffoptions.-v,--versionβ shows her version info and dips. βοΈ--helpβ prints a usage message and exits. very helpful, very demure.
PDF integration with the mom macros is discussed in full in the manual βProducing PDFs with groff and momβ β which, yes, was itself produced with pdfmom. she's self-referential like that. π
and if you call her with -v or --version, pdfmom displays her version information and exits. using --help displays a usage message and exits. simple as that. π
π AUTHORS π
pdfmom was written by Deri James and Peter Schaffter, and is maintained by James. we love a collab. π«Ά
π§ SEE ALSO π§
/usr/share/doc/groff-1.24.2/pdf/mom-pdf.pdfβ βProducing PDFs with groff and momβ, by Deri James and Peter Schaffter. this file, together with its source,mom-pdf.mom, is part of the groff distribution. πgroff(1),gropdf(1),pdfroff(1),ps2pdf(1)
okay that's the whole page, bestie β go make something gorgeous. this one's running under groff 1.24.2, dated 2026-10-01, and yes she's a pdfmom(1) girlie through and through. mwah ππ
π¦ where this page comes from
- alpine 3.24: groff-doc 1.24.2-r0 Β· GPL-3.0-or-later
- Copyright 2012-2023 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms