What exactly is the issue? Do you know how to access the Outline root? Do you know how to proceed from there to the children/siblings (this will require a recursive function, unless you know there is only a fixed amount of levels in the bookmark hierarchy)? Do you know how to access the action(s) associated with each bookmark? It would be helpful if you could let us know to which point you've arrived, and where you got stuck...
On Fri, Jul 14, 2017 at 4:55 PM, Mustafa Farooqui <[email protected] > wrote: > Hi, > > I am trying to access the pages which are under the sub bookmark . > Below is the structure of the pdf file and under it there sub > bookmarks. These sub bookmarks have multiple pages which are basically > forms extended to more than one page. I am able to get to those sub > bookmark. However, cannot iterate over those pages or get any specific > page i need to edit or resize? > > Can anyone please suggest or help? I can share the code but cannot > share the confidential pdf which I am working on. I tried finding the > sample document online but couldn't find any. My question is similar > to the below link which i found on stackover flow. > > https://stackoverflow.com/questions/45002625/how-to- > load-the-pages-which-are-under-the-sub-bookmark-using-pdf-box > > > Below is the structure of my PDF document > > MainBookMarkName|_firstBookMark (1-10 pages) > -page1 > -page2 > -page3 > -page4 > - . > - . > -page10|_secondBookMark (1-5 pages) > -page1 > -page2 > -page3 > -page4 > -page5|_thirdBookMark (1-8 pages) > -page1 > -page2 > -page3 > - . > - . > -page8|_FourthBookMark|_|_|_lastBookMark > > > Thanks > > Mustafa >

