Hi

I am adding an image to a PdfPCell, and would like to have a border around the image only.

I try the following and do not get a border around the image.
/ MinePlanImage largeEventPlanView = new MinePlanImage(new File("/home/iss/iss/temp/test.jpg"));/ ///stores an instance of lowagie.com.text.image/
/ int BORDER=Rectangle.TOP|Rectangle.BOTTOM|Rectangle.LEFT|Rectangle.RIGHT;
PdfPTable tab = new PdfPTable(1);
tab.getDefaultCell().setBorder(BORDER);
tab.getDefaultCell().setPadding(20);
PdfPCell cell = new PdfPCell();
Image image = largeEventPlanView.getImage();
image.setBorderWidth(5f);
image.setBorder(BORDER);
cell.addElement(image);
cell.setPadding(20);
cell.setBorder(Rectangle.LEFT);
tab.addCell(image);
document.add(tab);
/
Does anyone know how to do this ?


Cheers
Rudy





--
Rudy Wuite
ISS International Limited e-mail: P.O. Box 12063 tel: +27 (21) 809-2095
7613 Die Boord fax: +27 (21) 809-2061
South Africa switchboard: +27 (21) 809-2060
WWW: http://www.issi.co.za/
____________________________________________________________________


This e-mail message contains confidential information which is
intended for the use of the person to whom it is addressed.  If you
received it in error, please notify the sender and delete the
material from any computer.  Any disclosure, re-transmission,
dissemination or any other use of this information is strictly
prohibited.
____________________________________________________________________





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to