I have a script that outputs reports as multi-page pdfs. Recently I noticed that each pdfs cuts off around 1.5 rows after each page. Possibly the column names are being written over the missing portion of the row, but I'd like to keep the column names on each page. This behavior can be reproduced easily with the following script. How can I keep my pdfs from losing rows in between pages?