Hello all,
I'm new to using acrobat and was hoping to get some assistance regarding the batch processing of bookmark files. Basically I want to know if it is possible to set bookmark properties using global settings all in one go, or reset the default properties of bookmarks. Currently, I have to manually set the properties of each individual bookmark by right clicking on each of them, selecting properties, changing to the actions tab, clicking edit and then setting the zoom to 'Fit Page'. I was hoping to be able to eliminate these steps if at all possible and do the entire document in one hit.
Any help at all would be very much appreciated.
Rather than using bookmarks to zoom fit page, use the page properties set action instead, this is the javascript I have done in batch processing which will do the job.
/* Zoom to Fit Page */
var numpages = this.numPages;
for (var i=0; i < numpages; i++) {
this.setPageAction(i, "Open", "this.zoomType = zoomtype.fitP;");
}
Hope this helps you.
![]()
Hey Jo,
I am having issues using this script.
I went to page properties and added this Javascript. But when saved nothing happened? How might I apply the fit to page for ALL bookmarks without manually having to do it? Because we have documents up to 800 pages and that is quite a bit of time.
Thanks,
Lorne
North America
Europe, Middle East and Africa
Asia Pacific