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

How to get bookmark's multiple actions?

Explorer ,
Jun 27, 2017 Jun 27, 2017

Hi

I use PDBookmarkGetAction (aBookmark) to get the PDF bookmark's action

but if the bookmark has multiple actions, PDBookmarkGetAction (aBookmark) only get one action.

How I can get another action of the bookmark?

Thanks.

TOPICS
Acrobat SDK and JavaScript
1.1K
Translate
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

correct answers 1 Correct answer

LEGEND , Jun 30, 2017 Jun 30, 2017

PDAction is a convenience layer - to make the simple case easy. Your case is not simple; there is no PDActionGetNextAction or similar. So as in most more complex cases you have to study the PDF specification then use the Cos layer. There is a PDAction method to get you started with a CosObj.  

Translate
Adobe Employee ,
Jun 28, 2017 Jun 28, 2017

Actions are chained – you follow the chain from the PDAction

Translate
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
Explorer ,
Jun 30, 2017 Jun 30, 2017

Would you like to show me the code?

Translate
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
LEGEND ,
Jun 30, 2017 Jun 30, 2017

PDAction is a convenience layer - to make the simple case easy. Your case is not simple; there is no PDActionGetNextAction or similar. So as in most more complex cases you have to study the PDF specification then use the Cos layer. There is a PDAction method to get you started with a CosObj.  

Translate
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
Explorer ,
Jul 02, 2017 Jul 02, 2017
LATEST

I was aware that I could get all Actions using CosObj, but I was hoping for a little way to not use CosObj.

I understood what I should do.

Thank you for your advice.

Translate
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