|
|
10.4: Use Preview to view formatted man pages
Well, here is my 'pman' version of a man-to-pdf convenience script. It first checks for available man pages, then converts the man page to pdf, stores it at a configurable location and then opens it in Preview. If a pdf already exists, the conversion will be left out.
10.4: Use Preview to view formatted man pages
I didn't have 'ps2pdf' on my system (Tiger, 10.4.3). Instead, I had 'pstopdf' so the original script didn't work for me. I came up with something a little different based on doctype's script.
If your intended storage location for the PDFs has spaces in the directory name (e.g. a folder in your Documents folder named "PDFs of man commands"), you can get away with something like:
Also note that the trailing slash isn't needed since I'm using this variable differently.
10.4: Use Preview to view formatted man pages
Great script! It should be mentioned that ghostscript needs to be installed in order for the ps2pdf function to be available. You can get it via the Fink or Darwinports projects. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.11 seconds |
|