I suggest you use PdfTextExtractor with a LocationTextExtractionStrategy, then search the String returned by the text extractor for "http://" and parse out the rest of the URL.
--Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer<Cardiff> DisCard = null; > -----Original Message----- > From: gayatri parthasarathy [mailto:[email protected]] > Sent: Tuesday, May 03, 2011 5:17 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Get Hyperlink text from PDF using c# > > Yes Mark. I need to get all the hyperlinks which starts with > http:// from a pdf file using c#. Please share any code > snippet for this. > > On 4/26/11, Mark Storer <[email protected]> wrote: > > Are you talking "text on the page that starts with > 'http://'" or "link > > annotations"? > > > > --Mark Storer > > Senior Software Engineer > > Cardiff.com > > > > import legalese.Disclaimer; > > Disclaimer<Cardiff> DisCard = null; > > > > > > > >> -----Original Message----- > >> From: gayatri parthasarathy > [mailto:[email protected]] > >> Sent: Tuesday, April 26, 2011 5:04 AM > >> To: [email protected] > >> Subject: [iText-questions] Get Hyperlink text from PDF using c# > >> > >> Hi, > >> > >> Please share any code snippet for getting the hyperlink > text from a > >> pdf file. i am using itextsharp library. > >> > >> Thanks in advance > >> > >> -------------------------------------------------------------- > >> ---------------- > >> 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 > >> > >> > > > > > ---------------------------------------------------------------------- > > -------- 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 > > > > -------------------------------------------------------------- > ---------------- > 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 > > ------------------------------------------------------------------------------ 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
