Copy link to clipboard
Copied
Hi,
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?
Have something to add?