Author Topic: Acrobat 'Save As' page range query...  (Read 2970 times)

0 Members and 1 Guest are viewing this topic.

Offline TecNik

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
  • Gender: Male
Acrobat 'Save As' page range query...
« on: March 13, 2008, 11:01:02 AM »
Hi there,

Please can someone help me with this query.

I'm writing a script that takes a pdf, in Acrobat 7 Pro, sets a new Crop Box size and then saves each page as an EPS.
The cropping all works fine, it's the saving of the EPS's where I've hit a slight niggle.

If you save the file as an 'Encapsulated PS' file there's a 'settings' dialog that can be accessed.
Under the 'General' tab there's a 'Page Range' option, is there a way of setting this to 'All' ?

Here's the 'save' part of the script:-

Code: [Select]
set dest_path to path to desktop as string
set epsfilename to "myAcrobatFile.eps"

tell application "Adobe Acrobat 7.0 Professional"
   save document 1 to file (dest_path & epsfilename) using EPS Conversion
   --close active doc
end tell

If I go down the manual route and set this pref to 'All' that setting is retained because if I run the script I get all pages from a multi-page pdf saved as EPS's.
If I change this to a page range only one eps file is created.
From that I can see that there's a pref being saved in a plist somewhere however before I go down that route is there a simpler solution?

I've tried things like 'save every page of document 1' and 'save all pages of document1', but no luck.
I'd also thought of a loop for each page but that's pretty inefficent given there's an 'All Pages' option somewhere.

Thanks in advance.



Model: G5
AppleScript: 1.1
Browser: Safari 312.3
Operating System: Mac OS X (10.4)

Offline larsen67

  • Sr. Member
  • ****
  • Posts: 459
  • Karma: 10
  • Gender: Male
Re: Acrobat 'Save As' page range query...
« Reply #1 on: March 13, 2008, 12:55:08 PM »
You can choose "all" as one of your convert from PDF options in Acrobat pref's then all you need do is if you want to output a range of pages. Delete unwanted pages from PDF then convert & close without saving.