Hi Team, 

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

Now my requirement is to open an image in the folder on click of an image
[relative path] 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/How-to-open-an-Image-File-on-click-of-link-image-in-a-PDF-tp4392873p4392873.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