Op 9/05/2011 10:40, LIHE schreef:
> How can I finding a link to a special destination in a existing pdf
> and add a openinnewwindow attr. ???

With PdfReader.getPageN(page) you can get the page dictionary.
If the page has annotation, there will be an /Annots entry.
Retrieve that entry; it will be an array.
Loop over the array to find the Link annotation you need.
Update the annotation.
Use PdfStamper to create the altered PDF document.
(See chapter 13 for some examples that do more or less the same.)

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to