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

Setting hyperlinks to

cydunning
Registered: Feb 22 2006
Posts: 2
Answered

When setting bookmarks and internal hyperlinks, I need to make the zoom level on all "inherit zoom." When they're created, they seem to inherit the zoom level during creation, usually "custom" or "fit page" or "fit width." Then I tediously go into each link or bookmark properties and change the zoom level to "inherit zoom." Is there any way to select all of them and change the zoom level? When attempting to do this in the past, it was also setting the page to whatever page the first link is - not acceptable. Please tell me someone thought of a way to fix this in Acrobat 8. Thanks.

tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
You can edit multiple bookmark properties in the Properties dialog box. Select the first bookmark in the Bookmarks panel and press the Shift key, then click the last bookmark in the panel to select all.

With all bookmarks selected, open a context menu and select Properties. You can nest actions in the Properties dialog box. The existing bookmark propertes is set to Go to a Page View. Don't disturb it. Add a new action like a JavaScript and add the following code:

this. zoom = zoomType.fitP

Above for Fit Page. You can choose from a variety of different zoom types to change the code in the above script. Look in the JS Specificatgion manual for a list of zoomTypes. Unfortunately, you don't have an Inherit Zoom type, but you might find a zoomType that can fit your needs.

You may need to move the JavaScript action above the Go to a Page View action. Select the Run a JavaScript action after writing the code and click the Up button.

Adding the additional action won't disturb the original bookmark views.

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.

nancycouture
Registered: Apr 14 2008
Posts: 1
I have been asked to research this topic and this is a solution I have come up with. Could someone tell me if there is something inherently wrong with this solution?

1.Create your bookmarks.
2.While in your bookmarks panel (to the far left), click (once) on the top bookmark, while that is selected, do a CTRLA on your keyboard to select all of the bookmarks in your list (they will all turn blue).
3.Then, while these are all selected, RIGHT click and choose Properties (your bookmarks then turn grey).
4.Click the Actions tab, Select (click) the “Go to a page in this document” Action and click Edit.
5.Click the drop down beside Zoom: and choose Inherit Zoom.
6.Randomly check the Properties of a link to make sure that it worked right for you.

It seems so easy but the documents I am working with are very important and I want to make sure this is a good solution.
WayneL
Registered: Aug 26 2008
Posts: 1
When I follow the solution suggested by nancycouture, the properties on the bookmarks do set to "inherit", however the page destination for all of the bookmarks were set to the same page, thereby defeating the original page destinations. Does anyone else have any suggestions that will allow me to change the zoom properties for existing bookmarks? Or possibly to set the preferences so that new bookmarks would default to "inherit zoom".
rbogie
Registered: Apr 28 2008
Posts: 432
bad news -- the only way I have found to edit the actions of multiple bookmarks is to write a custom macro. I sure wish there were a way to edit/hack the internal coding of a PDF file so as to edit globally the bookmarks and hyperlinks and change, say, the path to a target doc.
dpbjinc
Registered: Nov 13 2008
Posts: 1
rbogie wrote:
I sure wish there were a way to edit/hack the internal coding of a PDF file so as to edit globally the bookmarks and hyperlinks and change, say, the path to a target doc.
There's not. According to the spec, each link has its own goto action associated with it. There's no way to override the zoom on the individual goto action.
However, it is possible to edit the PDF file in a text or hex editor (a very simple text editor is best) to change the zoom type on links while still keeping the links' same position on the page, which would solve WayneL's problem. Unfortunately, it's a REALLY long and complicated process, it only works for some links, and you have to sort through the [url=http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf]1,310-page-long specification[/url] to get the info you need.
David Myers
Registered: Jan 8 2009
Posts: 1
I have tried the Java Script method suggested by tedpadova but the this. zoom = zoomType.fitP
results in tiny tiny tiny little pages with 0.65% zoom. I have tried moving the Java Script up above the go to a page command but no success. I also don't know where to find the "JS Specification manual for a list of zoomTypes" but that might help.

Has anyone else tried this method with any success? I am using Acro Pro 8.1.3

I can't believe a robust program like Adobe wouldn't allow for something like globally editing bookmark zoom settings.
DBWard
Registered: Feb 17 2009
Posts: 1
Hacking the PDF looks like the way to go, and is not nearly as daunting as dpbjinc intimated. Using a text editor like EditPad, search for "GoTo" to find the bookmarks with a "Go to a page..." action. Among the parameters will be something like "R/Fit" (if the bookmark zoom is "fit to page"); change the parameter to "R/XYZ" for "inherit zoom". If the bookmarks were created with a custom zoom level, there may be some subtleties that could bite, so save a backup copy.
teledu
Registered: May 10 2007
Posts: 42
Accepted Answer
Have any or all of you explored using Evermap Autobookmark plugin?
It believe it will deal with most of what you are looking for (certainly the original post).
trace9r
Registered: Mar 8 2009
Posts: 1
It looks like they changed the JavaScript functionality somewhat on Acrobat 9; I tried adding the script above to get all my bookmarks to view my pages fully (Fit Page) and nothing happened.

I did find this solution, though.

- select/highlight all bookmarks
- right-click a bookmark > Properties...
- on 'Actions' tab, select Action "Execute a menu item" > click 'Add...' button
- scroll down and select the view you want for all your bookmarked pages, click 'OK'
- click 'OK' to exit Bookmark Properties

My last version of Acrobat was 5, so I don't know if this works in 6,7,8
DocDeb
Registered: Mar 13 2009
Posts: 1
I'm using Pro 8.1.3
I tried the suggestion of DBWard of using a text editor and searched for "GoTo" to find the bookmarks and changed the parameter to "R/XYZ" for "inherit zoom".

The bookmarks worked and their properties were set to "Inherit Zoom". Wahoo! But...The PDF resulted in blank pages, now I just have to get the contents of the document to show up and I'll be happy!
I tried it 3 times, same results.

I can't seem to maneuver tedpadova's suggestion at all without the "Inherit Zoom" option.

I'm bummed...I've been looking for a solution for a long time now. :(
I need Inherit Zoom!!
gxk-George
Registered: Jul 21 2009
Posts: 1
This has been killing me too. Ted (tedpadova ) basically provided the answer back in 2007.
Don't change each bookmark since everyone goes to a different page, but add a 2nd step to every bookmarker to zoom to "page". However, I got same results as David Myers back in 2009, tiny tiny tiny little pages with 0.65% zoom, using the Java script Ted suggested "this. zoom = zoomType.fitP".
Change the javascript to:

this.zoomType = zoomtype.fitP

and this work in Acrobat Pro 9. In Acrobat Pro 9 instead of adding Run a Java Script to all bokmarkers can add to all bokmarkers: Execute a menu item: View>Zoom>Fit PageSummary
Select all the bokmarkers - I prefer Highlighting one & using CTRL+a
Right click for context menu
select properties
Bookmark properties actions tab
Select Action: Execute Menu Item -OR- Select Action: Run Java Script
use add button to add action
From Menu Item Window select View>Zoom>Fit Page -OR- Enter in JavaScript Editor window: this.zoomType = zoomtype.fitPDon't know if one is more "efficient" than another.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
In case there's anyone out there still interested in a way of converting all Go to page-bookmarks to Inherit Zoom (no JS tricks, the real deal), this tool might be the answer you were looking for:
http://try67.blogspot.com/2011/04/batch-edit-bookmarks-inherit-zoom.html

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com