Alex Toron wrote: > I'm splitting a pdf document by bookmarks, but I can't figure out if the > bookmark is located in the beginning of the page or in the middle. > Is there are way to find it out?
If you use class SimpleBookmark, you usually get information like this: <?xml version="1.0" encoding="ISO8859-1"?> <Bookmark> <Title Action="GoTo" Page="1 XYZ 300 800 0" >root <Title Action="GoTo" Open="false" Page="1 FitH 500" >sub 1 <Title Action="GoTo" Page="1 FitBV 100" >sub 2.1</Title> <Title Action="GoTo" Page="1 Fit" >sub 2.2</Title> </Title> <Title Action="GoTo" Page="1 FitR 200 300 400 500" > sub 2</Title> </Title> </Bookmark> Actually, this is a copy/paste from p412 of the book "iText in Action". The keywords "XYZ, FitH, FitBV, Fit, FitR,..." are explained on p407-408, as well as the meaning of the coordinates that follow these keywords. For instance: if the destination is FitH, "the zoom factor is changed so that the page fit within the document window horizontally (the entire width of the document is visible). The parameter specifies the vertical coordinate of the top edge of the page." And so on... There is no single answer to your question, it depends on the keywords/parameters in your outline tree? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php