I am developing a report generation application that could have tabular data across multiple pages. I am using pdfTable to create tabular data. I am issues with adding page headers. The problem is that when I add page header onEndPage event handler, I am not get the table to start after certain gap so that header is visible.
Java – How to write page headers when using iText library in java
itextjava
Related Question
- Java – How to read / convert an InputStream into a String in Java
- Java – When to use LinkedList over ArrayList in Java
- Java – How to generate random integers within a specific range in Java
- Java – How to determine whether an array contains a particular value in Java
- Java – How to declare and initialize an array in Java
- Java – How to avoid Java code in JSP files, using JSP 2
- Java – How to convert a String to an int in Java
- Java – How to create a memory leak in Java
Best Solution
If you are using tables (PDFPTable) for your layout then you can use: table.setHeaderRows(2);
JavaDoc Link : http://api.itextpdf.com/com/itextpdf/text/pdf/PdfPTable.html