Hello, and thank you in advance for any help that you can provide for my problem.
I am trying to basically add a text(with formatting applied to it) at an absolute position with an anchor pointing to an external link to a newly created PDF document. I can see the text in the generated PDF, but it seems like the anchor reference is not added to it (acts as plain text instead of as a hyperlink). The way that I add the text is using the ColumnText.ShowTextAligned method passing a Phrase object in which I've added an Anchor object. I've also tried passing the Anchor object directly but I can only see the Anchor's text, but again the text is not clickable. I've also tried using a PdfAnnotation and the setSimpleColumn method of ColumnText but to no success. Here's a snippet of my code: canvas.saveState() Chunk chunk=new Chunk("some text"); Phrase phrase=new Phrase(chunk); Anchor anchor=new Anchor(); anchor.setName("Link"); anchor.setReference("http://www.youtube.com/"); phrase.add(anchor); ColumnText.showTextAligned(canvas, Element.ALIGN_UNDEFINED, phrase, 10, 10, 0); canvas.restoreState(); ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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