Hi,

I am using the following code to get the link object in the page and trying to 
get the destination of the link. But the destination returns 0. Could you 
please help me out?

        PdfReader currentReader = new PdfReader("C:\\Documents and 
Settings\\soundna1\\Desktop\\rad001x2101--legacy-clinical-study-report.pdf");
        currentReader.consolidateNamedDestinations();
        ArrayList links = currentReader.getLinks(5);// where "5" is the page 
number where my link is present
        System.out.println("Link=>"+links.size());// This returns one.. so it 
is identifying the link.
        for (int j = 0; j < links.size(); j++) {
        PdfAnnotation.PdfImportedLink link = 
(PdfAnnotation.PdfImportedLink)links.get(j);
        System.out.println("Link=>"+link.getDestinationPage()); // I am getting 
zero here
        }

Thanks,Nandha Kumar S.


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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