What is happening is that in our grant application/reporting system, occasionally we will have the issue where, after a certain "problem" section, the remainder of the document has page breaks generated where there should be no page break. At time we end up with a document that should be 20 pages stretching to over 100 pages, most of these blank. The attached code replicates this issue. After the "Promotional Materials" section, the following sections generate a page break after the second text bit that is inserted. This seems to happen in this particular case when you insert a link at the very bottom of a page. If you decrease the number of Promotional Materials items written, this issue goes away. Since in production these sections are of varying lengths depending on what the user has entered, we can't know when this issue might occur. Please take a look at this and let us know of a fix.
Thanks.
Laurie
p.s. Using Aspose.Pdf version 8.9.1.0
Thanks.
Laurie
p.s. Using Aspose.Pdf version 8.9.1.0