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?
Regards,
Eric Hamacher
******************************
THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
EMAIL TO [EMAIL PROTECTED] *******************************
-------------------------------------------------------------------------
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/