man pages to .ps (postscript)

The man command formats and displays Unix manual pages. It has the ability to format the manual pages and send them to the standard output. From manual pages:

-t Use /usr/bin/groff -Tps -mandoc -c to format the manual page, passing the output to stdout. The output from /usr/bin/groff -Tps -mandoc -c may need to be passed through some filter or another before being printed.

So simply type…

man -t man_page_name > man_page_name.ps

… and it will create a postscript formatted file containing the man page. You could then convert it to PDF or whatever you want.

See also:

  • man ps2pdf
  • man psresize

Leave a Reply

You must be logged in to post a comment.