Copy link to clipboard
Copied
I know how to iterate through the content tree. However, I am finding it difficult to iterate through the structure tree taking into account sub trees. Is it possible to iterate through the structure tree when it is multi leveled? Also can you locate a container found in the content tree within the structure tree?
Copy link to clipboard
Copied
The three can be iterated bi-directionally – you can get kids and parents. Not sure where your issues are…
Copy link to clipboard
Copied
Okay it may be an error in logic. Is it possible to only get structure tree elements located on a specific page without having to iterate through the complete tree?
Copy link to clipboard
Copied
No, it is not – you need to walk the tree to find the page of each element.
There have been some recent conversations as part of PDF 2.x about how that might be accomplished using the new DPart feature of PDF 2.0 – but nothing concrete at this time. (mostly because it’s a complex problem since structure doesn’t have to have any relationship to presentation)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now