I write a pdfptable to a document and than I add an header table and a footer table using onStartPage events.
My problem is that if the main table has a top border this will partially overwritten by the header. The naive solution is to write the header onStartPage, but than I have the same problem with a bottom border in the header.
My idea was to rewrite the borders of all tables onEndPage, but it think this is not easy. A solution would be to insert header and main table as nested table to another table, but this is not practicable in my case.
Any suggestions/experience in this area?