Hi,

Im new to IText PDF creation. I have created a PDF document which contains
some image and also downloaded this PDF document and few images to a folder.

Now my requirement is to open an image in the folder on click of an image in
the PDF file.

Below is the code snippet i tried.

String imageName = data.getImage());
Image image = Image.getInstance(getImageByteArray("\\"+data.getImage()));       
                
Chunk chunk = new Chunk(image,0,0);
chunk.setAnchor(imageName);
Phrase phrase = new Phrase(chunk);
cell = new PdfPCell(phrase);    

Thanks and Regards,
Leo

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Opening-an-Image-on-click-of-another-image-in-PDF-tp4389902p4389902.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