Hi... I'm looking for a way to attach a url to an image that is inside a
footer....
the onlt way i know its possible to add url to an image is by using
annotation
like this
Image vImage = Image.getInstance("name.jpg");
vImage .setAnnotation(new Annotation(0f,0f,0f,0f,new
URL("http://www.cnn.com")));
vImage .setAbsolutePosition(100f, 100f);
document.add(vImage );
but this doesnt work when i want to add Annotation to image that inside a
Chunk that inside Phrase that inside HeaderFooter object?
getting this : java.lang.RuntimeException: Not all annotations could be
added to the document (the document doesn't have enough pages).
at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
at com.lowagie.text.Document.close(Unknown Source)
so is this possible?
thx ahead
Daniel
--
View this message in context:
http://www.nabble.com/Is-it-possible-to-add-Annotation-to-image-that-inside-a-Chunk-that-inside-Phrase-that-inside-HeaderFooter-object--tp16807713p16807713.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar