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

Setting Destination of Bookmarks

astanton
Registered: Oct 23 2009
Posts: 3

Having problem similar to geko (May 15, 2009 post). Have version 9 Pro. Setting destination for bookmarks no problem if bookmark set within upper 75% of page, but if set within bottom 25% of page, bookmark takes user to top of next page. Have tried: using set destination on right-click menu or on bookmark pane options menu; scrolling to and selecting text on line where bookmark desired (positioned at top of view window) and then creating new bookmark; and, selecting single page continuous, single page, or default page layout on properties initial view tab. If I readjust slightly upward the position where I want bookmark set, about 30% of the way from page bottom, then bookmark "takes"; as I ever so slightly readjust back downward, as the bookmark set position nears the one-quarter point again from the bottom of the page (not page margin), the bookmark jumps to the top of the next page. I had the same problem and solved it two years ago in version 8, but foolishly neglected to write down the solution. I have made note of all properties and settings I can see in the file created with version 8 and and made sure my current file has the same properties and settings, but this does not help resolve the problem.

My Product Information:
Acrobat Pro 9.2, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
This Acro Solution with JavaScript may provide an answer. The JavaScript may have to be converted.

http://www.acrobatusers.com/tutorials/2008/10/auto_bookmark_creation

You might want to consider breaking up the large PDF so it can be packaged or used in a portfolio.

Here'd one more tutorial to check out.
http://www.adobe.com/designcenter/acrobat/articles/acr7sdbookmarks/acr7sdbookmarks.pdf

Hope this helps.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

astanton
Registered: Oct 23 2009
Posts: 3
pddesigner, thank you for the suggestions. I did try the second one (from the Acrobat 7 manual), but for whatever reason I'm still not able to have a bookmark go to precisely where I want it to go, if the location to be bookmarked is near the bottom of a page. I have not tried the automatic creation using Java script, because truthfully I don't understand how to apply that to my situation. I can get any bookmark to go to the page that it is supposed to go to, but I can't get some bookmarks to go to the precise location--like a jump link--that they are supposed to on a page. Thanks again and I will contine to look for the solution, even though there may not be one yet. I had said before that I got the same problem resolved two years ago, but that was before I got Acrobat 9 Pro. Because 9 is in essence a different application than earlier versions of Acrobat, in terms of its programming code (I have been told), I may not be able to find a solution this time.
pddesigner
Registered: Jul 9 2006
Posts: 858
I may have a JavaScript solution but it is coded for Acrobat 8 or below. I'll see if I still have it and send it tomorrow.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

pddesigner
Registered: Jul 9 2006
Posts: 858
Check out this knowledge base article:
http://www.acrobatusers.com/tutorials/2008/10/auto_bookmark_creation

Review the last entry in this post.
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=21192

Check out this tutorial - List PDF Bookmarks with a Free Script
http://blogs.adobe.com/acrolaw/2007/10/list_pdf_bookmarks_with_a_free_s.php

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

Thelisha
Registered: Dec 26 2007
Posts: 10
I am having the same problem as astanton. Shouldn't there be an easier way to create bookmarks/destinations that are located at the lower part of a page without it jumping to the next page in Acrobat 9?
Raybob
Registered: Feb 28 2007
Posts: 5
Version 10 Pro. (Jan 2011)

I can find no way of setting the destination of a bookmark. It does not appear under the drop down Options menuas stated in Help.
No right-click availability either. This is NOT good. There are now so many options in this version that it is becoming unfriendly to use compared with, say version 7. (I have been a user since version 3)

Bob Friendship, 59, Acrobat enthusiast since ver 3. Living in SW England

Raybob
Registered: Feb 28 2007
Posts: 5
OK, the option exists but is not available in the particular file I have created from multiple files and where the description of each import becomes the bookmark. It appears that I am unable to quickly edit the view in the destinations.

Bob Friendship, 59, Acrobat enthusiast since ver 3. Living in SW England

arunsegar
Registered: Nov 16 2011
Posts: 6
Hi,

I have some set of PDFs that has to give bookmark. Here the bookmark will be 5 different kinds.

i.e.,
Revision Test
Weekly Test
Quartely Test
Half yearly Test
Annual Test

Bookmark will come in the different pages of the PDF. What I need here is shortcut to define the bookmarks. I tried the below javascript.

function addBookmark() {
var bm = this.bookmarkRoot;
bm = this.bookmarkRoot.createChild("Revision Test","this.pageNum=");
}


app.addMenuItem({
cName: "RevisionTest",
cUser: "Revisio&nTest",
cParent: "Tools",
cExec: "addBookmark();",
})

Bookmark is coming however, destination is not going to the corresponding page. If I click the Bookmark it remains staying at the same page. Please help me in the destination issue. Your help in this regard appreciated.

Thanks,
Arun Segar
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You're not setting the page number... If you want it to point to the page you're currently viewing, change the second parameter of createChild to this:
"this.pageNum=" + this.pageNum

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

arunsegar
Registered: Nov 16 2011
Posts: 6
Hi,

Thanks Dude, it is working fine. Thanks for your timely help.

Thanks,
Arun Segar


arunsegar
Registered: Nov 16 2011
Posts: 6
Hi,

Here I found some issues in the sequence of the bookmarks. The sequence of the bookmarks varies from PDF to PDF. Using the below script I can't able to change the sequence.

function addBookmark() {
var bm = this.bookmarkRoot;
bm = this.bookmarkRoot.createChild("Revision Test","this.pageNum=" + this.pageNum, 0);
}
app.addMenuItem({
cName: "Revision Test",
cUser: "R&evisionTest",
cParent: "Tools",
cExec: "addBookmark();",
})
function addBookmark1() {
var bm = this.bookmarkRoot;
bm = this.bookmarkRoot.createChild("Weekly Test","this.pageNum=" + this.pageNum, 1);
}
app.addMenuItem({
cName: "Weekly Test",
cUser: "Weekl&yTest",
cParent: "Tools",
cExec: "addBookmark1();",
})
function addBookmark2() {
var bm = this.bookmarkRoot;
bm = this.bookmarkRoot.createChild("Quartely Test","this.pageNum=" + this.pageNum, 2);
}
app.addMenuItem({
cName: "Quartely Test",
cUser: "QuartelyTe&st",
cParent: "Tools",
cExec: "addBookmark2();",
})
function addBookmark3() {
var bm = this.bookmarkRoot;
bm = this.bookmarkRoot.createChild("Half yearly Test","this.pageNum=" + this.pageNum, 3);
}
app.addMenuItem({
cName: "Half yearly Test",
cUser: "Halfyear&lyTest",
cParent: "Tools",
cExec: "addBookmark3();",
})
function addBookmark4() {
var bm = this.bookmarkRoot;
bm = this.bookmarkRoot.createChild("Annual Test","this.pageNum=" + this.pageNum, 4);
}
app.addMenuItem({
cName: "Annual Test",
cUser: "Ann&ualTest",
cParent: "Tools",
cExec: "addBookmark4();",
})

Is there any option to solve the sequence change. Please suggest me.

Thanks,
Arun Segar

try67
Expert
Registered: Oct 30 2008
Posts: 2398
What do you mean, exactly? What is the problem with the sequence of the bookmarks?

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

arunsegar
Registered: Nov 16 2011
Posts: 6
Hi,

Using the already mentioned script, I can give bookmark like below:

Revision Test
Weekly Test
Quartely Test
Half yearly Test
Annual Test

If I like to change the Order of the bookmark like below not coming using the above script.

Revision Test
Quartely Test
Weekly Test
Half yearly Test
Annual Test

Because the Index value I set for the Quartely test is 2. While giving Bookmark of "Quartely Test" it is coming after the Bookmark of "Weekly Test" not after the "Revision Test" bookmark.

Thanks,
Arun Segar
try67
Expert
Registered: Oct 30 2008
Posts: 2398
I don't quite follow you... But why did you hard-code the bookmark index into the script? If you want it to add as the last bookmarks in the last, it to something like this:

var pos = this.bookmarkRoot.children == null ? 0 : this.bookmarkRoot.children.length-1;
bm = this.bookmarkRoot.createChild("Half yearly Test","this.pageNum=" + this.pageNum, pos);

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

arunsegar
Registered: Nov 16 2011
Posts: 6
Hi,

Thanks Yaar!!! Its works fine as per my request.

Thanks,
Arun Segar
arunsegar
Registered: Nov 16 2011
Posts: 6
Hi,

Select a text and press the shortcut key Ctrl+B in Adoble Acrobat, the bookmark will come in Navigation Tabs(Bookmark Tab). If we click that bookmark(Using Ctrl+B), the Bookmark icon and Bookmark Text got fully selected in Bookmark Tab.

However, using the below script if we give Bookmark, the Bookmark text only selected not the icon. Is this possible the icon also getting selected using the below script?

-------------
function addBookmark() {
var pos = this.bookmarkRoot.children == null ? 0 : this.bookmarkRoot.children.length+1;
bm = this.bookmarkRoot.createChild("Front Cover","this.pageNum=" + this.pageNum, pos);
}


app.addMenuItem({
cName: "Front Cover",
cUser: "FrontCov&er",
cParent: "Tools",
cExec: "addBookmark();",
})
-------------

Thanks,
Arun Segar