The first trick is to find the physical location for the man file. The example I will use will be for the command "osascript." You can substitute any command that has a man entry.
Find the man file.
garyd$ find /usr/share/man/ | grep osascript
/usr/share/man//man1/osascript.1
Now make a PDF of it.
garyd$ groff -msafer -mandoc -Tps /usr/share/man/man1/osascript.1 | pstopdf -i -o osascript.pdf
Pretty simple once you figure out how to make groff do its thing.
No comments:
Post a Comment