Op 12/01/2011 8:37, mindrani schreef:
> Hello
>
> How do I get the Hyperlink display text from PDF using iTextSharp.
>   I can get the hyperlink annotation and its rectangle. But I do not know how
> to get the Display text of hyperlink.
You are making the wrong assumption that the text at the same coordinate 
of a Link annotation is part of the link annotation. That is not true: 
text is part of the content stream of a page. An annotation is listed in 
the /Annots entry of a page dictionary. The only thing a Link annotation 
and the so-called "clickable text" have in common are their location.

You're already able to get the rectangle of the annotation. To know 
what's written at that location, you should use iText's parsing 
functionality. See chapter 15 to find out more about parsing the content 
at a specific position.

Note that you are NOT subscribed to the mailing list.
This means that:
(1) you risk NOT getting any other answer than this one (I've put you in 
Bcc: once, I won't do this twice).
(2) further questions you post may get lost among the abundance of SPAM 
that is thrown away every day.
(3) you are giving US boring administrative work for which we aren't paid.
Please REGISTER as expained on the support page: 
http://itextpdf.com/support.php

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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