We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to do page break


We are using Aspose PDF Generator to generate the pdf.

We need to move the records to next page when a certain record count reached. We tried using row.IsNewPage= true when record count ==8 reached on a particular page. But page break is happening only when page is filled completely with content. Page break is not happening when record count reaches to 8 due to this our one segment or group of text splits in between and showed half on one page and other part on another page. In order to avoid such cases we need to dp page breaks.

We want page break to happen when page reaches a particular record count.

Can you please suggest how to achieve this functionality.

Note : We are using Aspose.Pdf version

Looking for your reply.


Hi Saikat,

Thanks for contacting support.

The symbol #$NP indicates the beginning of new page, so you may consider using this replaceable symbol. Please visit the following link for further information on Replaceable Symbols

In case it does not fulfill your requirement or you have any further query, please feel free to contact.