More permanent stuff at

09 May 2005

Stupid OS X PDF Trick

Here is a trick I learned the other day. I read a lot of man files on OS X. However, it would be nice to make some prints to annotate. It also makes for easier scanning of the text.

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

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.