• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PDF and Javascript

New Here ,
Dec 20, 2009 Dec 20, 2009

Copy link to clipboard

Copied

I am using Adobe Acrobat 5.0.

I am having two issues.

Issue 1:


A javascript code is written such that when a hyper link is clicked
the code will make a specific bookmark to automatically expand or
collapse. Each time the link is clicked the book mark
expands/collapses as expected but the child within the bookmark
gets deleted for every click! When all the children of the bookmark
gets deleted again the child names are listed in full. How to
correct this.

Code:

var bmark = bookmarkRoot.children[0];

//following command will expand the specific bookmark.

bmark.children[0].open=true;

//in the above-specified bookmark I have 4 children (topics). Each
time the link is clicked, the bookmark expands but the children get
deleted.

Normally we can create hyperlinks in PDF through "Link Properties".
Is it possible to create hyperlinks through javascript?

When a hyperlink is clicked a specific bookmark is called to view
its contents. This is OK when dealing with one or two bookmarks. In
case of more than 10 bookmarks Is it possible to bring the bookmark
(say 15th bookmark that is not in view) directly to focus through
javascript code.

Issue 2: Index

Using Index wizard I generated the index for the PDF. But I don't understand how to call or use this index (.pdx) file in my document.

Thanks in advance.

With thanks and regards,

Krishna

Views

520

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 22, 2009 Dec 22, 2009

Copy link to clipboard

Copied

LATEST

Post your questions in the forum for Acrobat Scripting.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines