• 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: "Mark J. Reed" <email@hidden>
  • Date: Tue, 29 May 2007 11:05:10 -0400

I did however spot one problem where it seems to behave differently from
when called by the print UI, in that it seems to use a default page size,
rather than the page size of the actual document.

Ok, I'm guessing there that you need to either specify something in the options category or else set up some environment variables... but I'm not intimate with the inner workings of CUPS filters, and Apple has reportedly changed things around in their version anyway.

There is a little trick to help you figure out what the UI is doing
differently, but it's somewhat delicate surgery, heavily
command-line-oriented, and might break printing on your system...
if that doesn't terrify you, read on. :)

Open up a Terminal window and type/paste these commands into it:

cd /usr/libexec/cups/filter/
sudo mv cgpdftops cgpdftops.bin

That should prompt for your password and then rename cgpdftops to
cgpdftops.bin.  Make sure that it worked via the ls command:

ls cgpdftops*

You should see a cgpdftops.bin and nothing else.  Assuming all is
well, paste this in next:

sudo bash -c "cat >cgpdftops" <<'EOF'
#!/bin/sh
b="`basename "$0"`"
echo "$0" "$@" >>"/tmp/$b.log"
exec "$0.bin" "$@"
EOF
sudo chmod 0755 cgpdftops

Now, go print from the UI.  When it's done, go back to the Terminal
window and take a look at the logfile:

cat /tmp/cgpdftops.log

That should display the command line that the UI used.  Perhaps
there's something in the options argument that fixes the page size..
_______________________________________________
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: 
 >How to save a PDF as a postscript file? (From: Richard Rönnbäck <email@hidden>)
 >Re: How to save a PDF as a postscript file? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: How to save a PDF as a postscript file?
  • Next by Date: Re: How to save a PDF as a postscript file?
  • Previous by thread: Re: How to save a PDF as a postscript file?
  • Next by thread: Re: How to save a PDF as a postscript file?
  • Index(es):
    • Date
    • Thread