Thank you for the response. I choose to compute first my footer table height. I create the document like new Document(..., BOTTOM + footerHeight); I wrote the footer at at Y = document.bottomMargin() (because this now contains the footer height set at document creation)
Only one problem I encountered : table.getTotalHeight() does not work , returns 0. A post http://itext-general.2136553.n4.nabble.com/table-getTotalHeight-not-working-in-RegisterForm1-java-td2156430.html here specify that you must have cell width set. That is not done if you use, like me, table.setWidthPercentage. So I create a simple method to compute table height like this : float height = 0; ArrayList<PdfPRow> rows = footer.getRows(); for (int k = 0; k < rows.size(); k++) { PdfPRow row = rows.get(k); PdfPCell[] cells = row.getCells(); float rowHeight = 0; for (PdfPCell cell : cells) { if (cell == null) { rowHeight = Math.max(rowHeight, MINIMUM_HEIGHT); } else { rowHeight = Math.max(rowHeight, cell.getMaxHeight()); } } height += rowHeight; } Now everything works as expected. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Pdf-Table-footer-and-bottom-margin-tp4321110p4323163.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php