bisoa wrote: > Any information? I had to look up the original question. This is a copy/paste of that question:
"I thought the extra spacing in Table Cells of PDF documents was part of iText. However I noticed that the extra spaces does NOT appear in RTF documents!" PDF is quite different from RTF. "In each Cell, about 2~3 pixel extra padding spaces appear in left, bottom, and right. No extra spaces in top." There's a default padding of 2 point in some cases. It all depends on how you are adding/constructing the cell. "Is the extra spaces added by PDF viewers or by iText?" PDF Viewers don't add spaces. The layout of a PDF is defined BEFORE the PDF is rendered in the viewer, so the spaces are added by iText. You can change the padding, you can let iText take into account the ascender/descender of the contents, you can tune this completely according to your wishes if you are using PdfPTable (if you are using Table, you can also change the default padding, but you don't have that fine-grained control offered by PdfPTable). -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
