pieter vankeerberghen wrote:
> Colleagues,
> 
> For an application, one needs to detect the hyperlinks (i.e. done with 
> Chunk.setRemoteGoto) in a PDF which point to an other PDF, can someone 
> point me to a solution ?

Links are annotations, annotations are referred to in the page 
dictionary of every page. So you need to loop over all the page in an 
existing PDF and use getPageN(n) to get the page dictionary.

Get the Annots entry from this dictionary and loop over the annotations. 
Check if there are annotations with Subtype Link. Inspect those annotations.

Note that this is only one way to link to an external page. There could 
be links using other annotations too (e.g. involving a JavaScript action).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to