Hi, 1) I have a PDF file that contains a number of links. I would like to detect those links and replace them by signature fields. I think that that is possible. Can you confirm this? 2) I got started as follows:PdfReader myreader = new PdfReader("C:/Docs/iText/test/TestLink.pdf");
int nPages = myreader.getNumberOfPages();
PdfDictionary annot;
for(int i=1; i<=nPages; i++){
PdfDictionary page = myreader.getPageN(i);
PdfArray annotsArray = page.getAsArray(PdfName.ANNOTS);
if (annotsArray == null) continue;
int j=annotsArray.size();
System.out.println("Number of annotations " + j);
for (int z=0; z<j; z++) {//over all annotations
(...)
}
I read that I should check if there any annotations with subtype link.
Can you point out of I do that?
And how can I retrieve information of the link, such as the URL it is
pointing to?
Thanks for your help! Piet
<<attachment: piet_demeester.vcf>>
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ iText-questions mailing list [email protected] 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/
