Hi,

Im trying to display an image on click of a thumbnail Image in PDF. I was
able to get the desired result using annotation but an Annotation Icon was
getting displayed over the original Image. Please refer the Screen shot and
code snippet for details.

http://itext-general.2136553.n4.nabble.com/file/n4393298/image.bmp 

PdfAnnotation attachment = PdfAnnotation.createFileAttachment(writer, new
Rectangle(100f, 650f, 150f, 700f), "Original Image",
getImageByteArray("\\"+data.getImage()), null, imageName);
                                
Chunk chunk = new Chunk(image,0,0);
chunk.setAnnotation(attachment);                
Phrase phrase = new Phrase(chunk);
cell = new PdfPCell(phrase);    

Regards,
Leo

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-remove-PDFAnnotation-Icons-present-over-an-Image-tp4393298p4393298.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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

Reply via email to