I have number of PDFs which are linked by bookmarks. I want to find the filename of the PDF linked from each bookmark. Also i want to find the bookmarks entries which links to same PDF and to external PDF. Can you please help?
I have number of PDFs which are linked by bookmarks. I want to find the filename of the PDF linked from each bookmark. Also i want to find the bookmarks entries which links to same PDF and to external PDF. Can you please help?
for (var i = 0; i < this.bookmarkRoot.children.length; i++)
{
var doc = this.bookmarkRoot.children[i].doc;
{..do doc stuff..ex: push 'doc.path' into an array..}
}
That's off the top of my head, you'd have to have it iterate through all of them if there is a subtree, so make a function that calls this loop and for every child of a child it will call the function.
That should get you started.