Yes there is. First, images /should/ work exactly the same was as text. If it doesn't, that's a bug and should be reported as such (preferably with some sample code).
Hyperlinks in PDF are annotations (like a button in this case) that float over the page content. Annotations can be members of a layer. I didn't know that until just now... ya learn something new every day. PdfLayer layer = buildMyLayer(); PdfAnnotation link = buildMyLink(); link.setLayer( layer ); I'm pretty sure there's an example or two floating around that show how to add a hyperlink over a given piece of text. The link itself won't have an appearance, it has to float over text that does. NOTE: If you just want the link text to not print, you're already there. There's nothing to see in the link annotation, and you can set any annotation to "don't print": annotation.setFlags( 0 ) (not hidden, not printable). If you want more control based on layers in general and annotations in general, use setLayer(). --Mark Storer Senior Software Engineer Cardiff.com #include <disclaimer> typedef std::disclaimer<Cardiff> Discard; > -----Original Message----- > From: basscomp10 [mailto:[email protected]] > Sent: Tuesday, March 16, 2010 10:46 AM > To: [email protected] > Subject: [iText-questions] Adding hyperlinks/image to a layer > > > Hi, > > I am using itextsharp referenced in VB.NET. I'll appreciate a response > even > if written in Java. Is there a way to add hyperlinked text or hyperlinked > images to a layer? Text works just fine like this: > > Dim not_printed As iTextSharp.text.pdf.PdfLayer = New > iTextSharp.text.pdf.PdfLayer("not printed" & i.ToString, stamp.Writer) > not_printed.OnPanel = False > not_printed.SetPrint("Print", False) > over.BeginLayer(not_printed) > 'iTextSharp.text.pdf.ColumnText.ShowTextAligned(over, > iTextSharp.text.Element.ALIGN_CENTER, New iTextSharp.text.Phrase("DON'T > PRINT THIS!"), 520, 10, 0) > > Thanks! > > -- > View this message in context: http://old.nabble.com/Adding-hyperlinks- > image-to-a-layer-tp27921990p27921990.html > Sent from the iText - General mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ -- > ---- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > 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/ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/17/10 > 00:33:00 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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/
