These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Script Help for a willing trier with some experience

FHSC
Registered: Jun 7 2010
Posts: 10
Answered

I need a Script that I can run that will open up the Page Properties and modify a Page, then save the Page before moving onto the next Page. When run it would work through the pdf file and modify every page to the display parameters required. The Script needs to do the following :-

1) Open Page Properties
2) Select the Actions Tab
3) Click Add
4) Select View>Navigation Panels>Bookmark
5) Click OK
6) Click Add
7) Select View>Page Display>Single Page
8) Click OK
9) Click Add
10) Select View>Zoom>Fit Page
11) Click OK
12) Click OK
13) Move to Next Page

Can anybody help as I have no idea on how to write this, I am running Acrobat Professional 8.1.3 and Windows XP, can this be done?

My Product Information:
Acrobat Pro 8.1.3, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi FHSC,

You can do this with a Batch Process using built-in functionality in Acrobat- no extra scripts required. In Acrobat go to Advanced ->Document Processing ->Batch Processing. Click on New Sequence give it a name then in the next dialog click on the Select Commands button. Under Document there is an option "Open Options." Select it and click the Add button- it should move over to the left side column. Now click on the "Edit" button and you will see you can set the PDF to open with the Bookmark panel open, set Page layout to Single Page, and in the Open Action section set the Magnification to Fit Page. Once you have those option set click OK and then you need to run your Batch Process by filling out the rest of the dialog- "Run Commands On and Output Location.Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
FHSC
Registered: Jun 7 2010
Posts: 10
I've tried your suggestions, I have even completely removed Acrobat and re-installed it but when I do as you suggest and save the file, when I open it up, all of the pages are still set with the original page defaults and haven't taken on the changes, I'm befuddled.

I agree that what you have suggested should have sorted out the issue and changed every page to the new default setting however, somewhere along the line someone forgot to tell Acrobat what to do!!

I am quite willing to forward you one of the files to play around with to see if you can manage to beat the programme.

Regards

Colin
rbogie
Registered: Apr 28 2008
Posts: 432
the batch process described in dimitri's helpful post is intended to set the file properties on multiple files; not to set page properties on multiple pages in a file. if you want to set file properties on one file, you need only to make settings in 'initial view' tab on file properties [ctrl+D]. if you want a unique set of display settings to apply to each page (for example, if you want each page to display with a different zoom value; is this what you want?), there is no batch sequence for doing this. with custom scripting i can apply a distinct page view setting to each of hundreds of pages or to multiple subsets of pages where the settings remain constant within a subset. perhaps a java script expert can write a java script, but i doubt it.
FHSC
Registered: Jun 7 2010
Posts: 10
Hi,

Your reply interests me. Just to put you in the picture, I finish off CDs/DVDs for a Family History Society (Charity) in the UK. When the PDF files come for me to assemble, check their links and to create the digital media for our members I find that various page settings have been used within each document. On the face of things this doesn't seem to be an issue with the PDF creators but for a users point of view, when they hedge-hop through the Bookmarks, the pages take on the setting of the previous page opened which can cause serious magnification issues.

I have all of my default settings to open a page in single view, allowing the Bookmarks to be displayed and with the zoom setting of fit page, however, when I open these rogue PDF files, my setting go out of the window. On the smaller files, I have had to work my way through the file, page by page, adjusting each setting until every page has been done which is okay, however, when some files have more than 1000 pages, or several thousand pages, as they say in the UK, or maybe down the road in SF, it's like painting the Forth Road Bridge, it never ends.

What I would be interested in an aid to assist me in changing the page settings to what I require (as above) that will run in the background without me having to manually adjust every page.

Can you help, if so, tell me more.

Regards

Colin