Hi
Bruno,
Hope you are doing well! I am using the PdfWriter to generate few reports.
User can run multiple reports at a time, and all these would appear in a single PDF document. As some of the reports could have lot of columns, I am splitting the table (by columns) using writeSelectedRows() method.
If the user selects reports which are large (which need a split) and smaller report (which would fit on a page), I am using a combination of writeSelectedRows() method to write the larger table and then adding the smaller table to the document (document.add(table)). I ran in to issues where PDF document looks bad, with few blank pages (they are of zero size, and the document does not print).
Note: I am also adding several other small tables to the document as document.add(table).
Is the approach I'm taking wrong? Can you please suggest ways to implement what I want to do? I have been banging my head against the wall with no luck.
I read on the site about using PdfTemplate to write the table and then cutting the PdfTemplate whichever way I want, but I do not know how to cut the PdfTemplate. Any help would be greatly appreciated as I am working against strict timelines.
Thanks a zillion in advance!
Regards
Hareesh