Re: How to save a PDF as a postscript file?
Re: How to save a PDF as a postscript file?
- Subject: Re: How to save a PDF as a postscript file?
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 29 May 2007 12:02:44 -0400
On 5/29/07, Philip Aker <email@hidden> wrote:
What you want to do first is set your PPD environment variable to the
POSIX path of your favorite .ppd.
Ok, that would be the piece that sets up the page size...
For the uninitiated: a PPD is the printer description file used by
CUPS. The one for your printer should be fine if printing to your
printer from the GUI achieves a satisfactory result.
They live in /usr/share/cups/model/, and laserjet.ppd is a reasonable
fallback default.
To set up the environment variable for the benefit of the command in
the script I posted, just prefix the assignment to the front of the
string (pay attention to the spaces before the closing quotes). I've
also incorporated Philip's suggestions of leaving the arbitrary
strings blank (I wasn't sure that was OK) and redirecting error output
to nowheresville:
set shellCommand to "PPD=/usr/share/cups/model/laserjet.ppd " ¬
& "/usr/libexec/cups/filter/cgpdftops '' '' '' 1 '' <" ¬
& quoted form of pdfFile & " >" & quoted form of psFile & " 2>/dev/null"
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden