Well.. It seems that the padding isn't really fixing all of the document
cutting problems.
These are my cell settings now:
private void applyDefaultCellProps(PdfPCell cell){
cell.setBorder(PdfPCell.NO_BORDER);
cell.enableBorderSide(Rectangle.LEFT);
cell.enableBorderSide(Rectangle.RIGHT);
cell.setPadding(5);
cell.setPaddingTop(0);
cell.setPaddingBottom(2);
}
private void applySubHeaderCellProps(PdfPCell cell){
cell.setBorder(PdfPCell.NO_BORDER);
cell.enableBorderSide(Rectangle.LEFT);
cell.enableBorderSide(Rectangle.RIGHT);
cell.setPadding(5);
cell.setPaddingBottom(2);
cell.setPaddingTop(0);
}
It's ok in 80% of the documents, but there are still documents cut badly.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/PdfPTable-padding-and-spacing-tp2248510p2248592.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/