Peter Miklosko wrote:
> Open given PDF document
> Read page by page
> If the page contain a link to external document, get relative path
> stored in document, open this document and here create new bookmark.
> This bookmark has return location back to starting document and to
> appropriate page.
>
> I thought that what I'm doing is correct, so no misterious error just
> miss understanding of API. Hmmmm...
> Can I please get some hints ?
You are trying to read the page content and you're:
1) doing it completely wrong (PdfReader with the byte[] stream
of the page content).
2) forgetting that links are annotation that don't make part
of the page content (so you don't even need the page content).
Please switch to chapter 18 and 'climb the object tree' to find the
annotations. You'll need the PDF Reference to find out how to retrieve
the link annotations.
Note that what you are trying to achieve is no stuff for newbies.
br,
Bruno
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/