• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to save a PDF as a postscript file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to save a PDF as a postscript file?


  • Subject: Re: How to save a PDF as a postscript file?
  • From: Richard Rönnbäck <email@hidden>
  • Date: Wed, 30 May 2007 07:16:42 +0200
  • Thread-topic: How to save a PDF as a postscript file?

Philip, Mark

Thanks a lot. Your help was far beyond what I could expect. The few minor
adjustments I have to make are all related to my environment and the larger
script where this is supposed to be a part of.

I am deeply thankful

// Richard


> Från: "Mark J. Reed" <email@hidden>
> Datum: Tue, 29 May 2007 12:02:44 -0400
> Till: Philip Aker <email@hidden>
> Kopia: Richard Rönnbäck <email@hidden>, AppleScript
> <email@hidden>
> Ämne: Re: How to save a PDF as a postscript file?
>
> 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

References: 
 >Re: How to save a PDF as a postscript file? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Splash screen for AppleScript bundle Apps?
  • Next by Date: [ANN] Script Timer 2.5 released by Apps & More Software Design
  • Previous by thread: Re: How to save a PDF as a postscript file?
  • Next by thread: [ANN] Script Timer 2.5 released by Apps & More Software Design
  • Index(es):
    • Date
    • Thread