Dirk Ulrich wrote:

>         t.setConvert2pdfptable(true);
>         PdfPTable p = t.createPdfPTable();

There is no reason to create a Table first, and then convert
it to a PdfPTable in this case. Create a PdfPTable right away.
Then you can tell the cell if it should scale the image or not.

Compare the different way images are rendered in this example:
PdfPTable table = new PdfPTable(1);
table.addCell(img);
table.addCell(new PdfPCell(img, true));
table.addCell(new PdfPCell(img, false));

br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to