I need to generate a pdf report with complex template. I have an xls file with a complex layout that generally consists of a header with table header, table rows, table footer and a general footer.
Is it possible to generate a pdf report with itext which would be sequentially generated from
- Header.pdf file with the table's column headers row
- Dynamically generated in java code table row that would seamlessly continue the table from the Header.pdf
- Footer.pdf with column footers that would seamlessly continue table rows generated from java code.
Like this:
Header.pdf+----------------------------------------------+
| |
| Header |
+----------------------------------------------+
| | |
| Column 1 Header | Column N Header |
| | |
+----------------------------------------------+
Java-code-generated table rows +----------------------------------------------+
| | |
| Value 11 | Value 1M |
| | |
+----------------------------------------------+
...
+----------------------------------------------+
| | |
| Value N1 | Value NM |
| | |
+----------------------+-----------------------+
Footer.pdf+----------------------------------------------+
| | |
| Column 1 Footer | Column N Footer |
| | |
| | |
+----------------------+-----------------------+
| |
| Footer |
| |
+----------------------------------------------+
Thank you.
UPDATE
Here's the template in Excel.
The two rows of the table are straight in the middle of the template. And accordingly the general header with table column headers and the footer with column footers.


