Eric Hamacher wrote: > When I execute the following code (where pdf is a Document and img is an > ImgTemplate):
> pdf.newPage(); > PdfPTable table = new PdfPTable(1); > PdfPCell cell = new PdfPCell(img, true); > cell.setPadding(0f); > table.addCell(cell); > pdf.add(table); > I get the border of what I presume is the table and my image is present > but cut-off on the right side about 2/3 of the way from the left > border. I’ve tried fiddling with column width, page margins, the > viewbox of my image, padding, etc. but my image is always cut-off. I > want the image to be centered within the cell and the cell to be > centered within the table. What could this be? Please give us a complete code sample that reproduces the problem. I remember a similar question on this list a while ago. We couldn't help because we couldn't reproduce the problem. A week later, we got the message from the original poster that he had made some mistake in his own code (not iText related). In other words: the problem was solved, but we don't know how. -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
