I would like to see info or man pages in PDF format so the formatting displays correctly. I see texi file can be converted (with texi2pdf) but I don't find any texi files with locate. In this case, I'm interested in the Gpg2 info page.
I would like to see info or man pages in PDF format so the formatting displays correctly. I see texi file can be converted (with texi2pdf) but I don't find any texi files with locate. In this case, I'm interested in the Gpg2 info page.
creates a decent PDF file.
LibreOffice is also able to convert to PDF:
The output can compete with the above solution in my opinion.
Also there's
enscript
which offers interesting formatting options (seeman enscript
):makes use of CUPS PDF (you might need to install the
cups-pdf
package first) to print a PDF file in~/PDF/
– but it's not as fancy.also works, but the output is plain ugly.
Others have already answered the question of how to convert
info
pages to PDF, so I'll coverman
pages (the original and best online documentation!).On most modern Unix systems you can convert
man
pages to PDF just by using the-Tpdf
option toman
, but be aware that it will output tostdout
so you'll need to redirect it:If, for any reason, your installed version of
troff
/groff
(the formatting engine behind man pages) doesn't support direct PDF output then you can useps2pdf
, part of Ghostscript:You can get the .texi files from the source package:
Use
to find the .info file. In this case it's
/usr/share/info/gnupg.info.gz
.Now find the package that contains it:
This tells you the file is in the package
gnupg
. So download the source package:apt-get tells you
and
So you should find the .texi files somewhere in the folder
gnupg2-2.1.15/
(in this case they are ingnupg2-2.1.15/doc
)