Web Analytics

[email protected]:~$

How to export Linux manpages to PDF

All you need is the groff package. Install it via the repositories of your distribution (on Arch Linux it’s part of the base-devel pack) and then use this command:

$ man -Tpdf package > output.pdf

For example, if I want rsync’s manpage:

$ man -Tpdf rsync > rsync.pdf

In actuality you can export to other formats as well and not only PDF. For example, if I wanted to use ODT instead:

$ man -Tpdf rsync > rsync.odt

Via: Stack Exchange