I was able to resolve the issue. But was really dissapointed with the
responses got from mailing lists
Image image = Image.getInstance(getImageByteArray(imageURL));
PdfAnnotation attachment = PdfAnnotation.createFileAttachment(writer, null,
null, getImageByteArray(originalImageURL), null, imageName);
PdfAppearance app =
writer.getDirectContent().createAppearance(image.getWidth(),
image.getHeight());
attachment.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, app);
attachment.setAppearance(PdfAnnotation.APPEARANCE_DOWN, app);
attachment.setAppearance(PdfAnnotation.APPEARANCE_ROLLOVER, app);
Chunk chunk = new Chunk(image,0,0);
chunk.setAnnotation(attachment);
Phrase phrase = new Phrase(chunk);
cell = new PdfPCell(phrase);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setVerticalAlignment(Element.ALIGN_CENTER);
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/How-to-remove-PDFAnnotation-Icons-present-over-an-Image-tp4393298p4396773.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