Linux Commands Examples

A great documentation place for Linux commands


Produce PDF documents using the mom macro set

see also : groff - pdfroff - ps2pdf



[-Tps [pdfroff options]] [groff options] files ...


[-Tpdf] [groff options] files ...

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


pdfmom is a wrapper around groff that facilitates the production of PDF documents from files formatted with the mom macros.

pdfmom prints to stdout, so output must be redirected to a destination file. The size of the final PDF can be reduced by piping the output through ps2pdf.

If called with the -Tpdf option (which is the default), pdfmom processes files using groff’s native PDF driver, gropdf. If -Tps is given, processing is passed over to pdfroff, which uses groff’s PostScript driver. In either case, multiple runs of the source file are peformed in order to satisfy any forward references in the document.

pdfmom accepts all the same options as groff. If -Tps is given, the options associated with pdfroff are accepted as well. Please note that when pdfmom calls pdfroff, the

-mpdfmark -mom --no-toc

options are implied and should not be given on the command line. Equally, it is not necessary to supply the -mom or -m mom options when -Tps is absent.

PDF integration with the mom macros is discussed in full in the PDF manual, Producing PDFs with groff and mom.


pdfmom sometimes issues warnings of the type

...: can’t transparently output node at top level

This is more of an annoyance than a bug, and may safely be ignored.

see also

groff , pdfroff , ps2pdf

How can this site be more helpful to YOU ?

give  feedback