Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Okay for a quick-n-dirty PDF, but...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Okay for a quick-n-dirty PDF, but...
Authored by: snuggles on Dec 08, '09 10:59:37AM
...the results are less than ideal. The font used for rendering the text appears to be Monaco at some large point size. Also, cupsfilter has no way of creating page numbers, generating useful headings, or performing word-wrap on long lines. Here's another approach, also using utilities built into Mac OS X, that produces much nicer output:
#!/bin/bash
enscript --word-wrap -p - "$1" | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$2" -
The enscript utility has an obscene number of options, so the possibilities for formatting font, margins, headings, etc. of the PDF file are nearly endless.

[ Reply to This | # ]
Okay for a quick-n-dirty PDF, but...
Authored by: thinkyhead on Dec 12, '09 08:02:22PM

Nice, as is the script below, but my Snow Leopard system doesn't have gs (GhostScript) installed. Is this an optional part of SL or do we need to get it elsewhere?

---
|
| slur was here
|



[ Reply to This | # ]