Ever wanted to create .pdf files from man(ual) pages? It's easy to do. Open a console and type:
where foo is the manual page you want to create as a .pdf file. You can call foo.ps anything you want, but it must have the .ps extension. The optional [filename.pdf] allows you to create the resulting .pdf file with a different name (otherwise, the default foo.pdf will be created).
Examples:
creates the file ls.pdf
creates the file ls_man_page.pdf
Code:
man foo | enscript -o foo.ps | ps2pdf foo.ps [filename.pdf]
Examples:
Code:
man ls | enscript -o ls.ps | ps2pdf ls.ps
Code:
man ls | enscript -o ls.ps | ps2pdf ls.ps ls_man_page.pdf
Comment