How do I convert a man page to PS or PDF?
I'm leaving on vacation and wanted to have something to read on the plane and at the beach. How can I convert a couple of man pages into either PS or PDF so that I can print them? Steve
Re: How do I convert a man page to PS or PDF?
On Fri, Oct 20, 2006 at 01:53:49PM -0700, Steve B wrote: I'm leaving on vacation and wanted to have something to read on the plane and at the beach. How can I convert a couple of man pages into either PS or PDF so that I can print them? Steve you will need the unformatted pages. then, for example: $ nroff -Tps -mandoc ls.1 less.ps that will handle postscript. dunno about tools for pdf. jmc
Re: How do I convert a man page to PS or PDF?
Hi Steve. On 10/20/06, Steve B [EMAIL PROTECTED] wrote: I'm leaving on vacation and wanted to have something to read on the plane and at the beach. How can I convert a couple of man pages into either PS or PDF so that I can print them? Thats easy ;) To convert a man page you just have to find the file and use the -T parameter of groff. e.g. convert man (4) em to a PS file: groff -Tps /usr/src/share/man/man4/em.4 em.ps if you have ps2pdf installed you can pipe the groff -Tps output directly into it: e.g. groff -Tps /usr/src/share/man/man4/em.4 | ps2pdf - em.pdf HTH, Andreas. -- Hobbes : Shouldn't we read the instructions? Calvin : Do I look like a sissy?
Re: How do I convert a man page to PS or PDF?
*ahem* Using a man page from /usr/src is not that good :) Try e.g. /usr/share/man/cat4/em.0 Andreas. -- Hobbes : Shouldn't we read the instructions? Calvin : Do I look like a sissy?
Re: How do I convert a man page to PS or PDF?
Steve B wrote: I'm leaving on vacation and wanted to have something to read on the plane and at the beach. How can I convert a couple of man pages into either PS or PDF so that I can print them? Steve man2ps http://spectral.mscs.mu.edu/USA2005/examples/man2ps/ or use man2web from ports print off the html files? Sevan / Venture37 -- The truth, the half-truth, and nothing like the truth. - Mark Brandon Read
Re: How do I convert a man page to PS or PDF?
Hi, On Oct 20, 2006, at 10:53 PM, Steve B wrote: I'm leaving on vacation and wanted to have something to read on the plane and at the beach. How can I convert a couple of man pages into either PS or PDF so that I can print them? If you're talking about manpages from any OpenBSD release you can use the OpenBSD website to open them in a browser and print from the browser. The easiest solution to your specific situation I guess ;-) http://www.openbsd.org/cgi-bin/man.cgi regards, Tobias
Re: How do I convert a man page to PS or PDF?
On 10/20/06, Steve B [EMAIL PROTECTED] wrote: I'm leaving on vacation and wanted to have something to read on the plane and at the beach. How can I convert a couple of man pages into either PS or PDF so that I can print them? You could just go here: http://www.openbsd.org/cgi-bin/man.cgi and print them directly from the site.
Re: How do I convert a man page to PS or PDF?
On 10/20/06, Sevan / Venture37 [EMAIL PROTECTED] wrote: man2ps http://spectral.mscs.mu.edu/USA2005/examples/man2ps/ or use man2web from ports print off the html files? Why install extra packages? groff is capable of converting man pages to ps (-Tps) and HTML (-Thtml) Andreas. -- Hobbes : Shouldn't we read the instructions? Calvin : Do I look like a sissy?
Re: How do I convert a man page to PS or PDF?
Andreas Maus wrote: On 10/20/06, Sevan / Venture37 [EMAIL PROTECTED] wrote: man2ps http://spectral.mscs.mu.edu/USA2005/examples/man2ps/ or use man2web from ports print off the html files? Why install extra packages? groff is capable of converting man pages to ps (-Tps) and HTML (-Thtml) Andreas. Yep, you're right. Sevan / Venture37 -- The truth, the half-truth, and nothing like the truth. - Mark Brandon Read