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

Access the nodes of scene.nodes using JsObject COM/OLE

Community Beginner ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard



I am trying to open a collection of PDF files and execute script in each annotation 3D found in each PDF.

I have created a program that does the trick using addScript but I have encountered issues I can't resolve regarding Security when a PDF is secured and addScript fails. Using jsObject, I am getting the scene of the 3D annotation and I am able to access scene.nodes.

But I can't figure how to reach each node by its index. I have tried to do (C#) :

Type javascriptObjectType = a_javascriptObject.GetType();

return javascriptObjectType.InvokeMember("getByIndex", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance, null, a_javascriptObject, new object[]{ 0 });

where a_javascriptObject is my COM object of the result of scene.nodes. I am able to access the property count of scene.nodes though.

Is it possible to get a node by its index? What am I doing wrong?

Acrobat SDK and JavaScript






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

Have something to add?

Join the conversation