I am using data from an application to create an expense report pdf, so the length of the resulting document will vary based upon the data. There are grids containing expense details that can span multiple pages, and occasionally the text get duplicated at the top of a new page. I've include a zip file which includes a screenshot of the malformed output when this happens (ScreenshotOfBug.png), a pdf example of how we want the pdf structured (ExampleOfDesiredExpenseReportOutput.pdf), and C# class with code that will cause the bug to be visible (Program.cs).
There is a for loop that generates expense detail rows, and the bug first appears when that loop runs three times. If you vary the number of loops though you will see the issue appear sporadically throughout the final pdf output.
Please advise whether there is a bug, or if there are settings in the document, grids, etc. that will resolve this issue.
Thanks