PDF export - text content not continuing into second page

I’m exporting pdf from master/detail view, and some of the content of my detail tables are very long text fields.
The field content begins on a fresh page, but at the end of the page the text is truncated rather than continuing on the next page.
How can i fix that?Ref these threads too as I have used these export modifications:

You may either customize the ExportPdf class or use custom export (see Page_Exporting and Row_Export server events) to export page break when necessary. The ExportPdf class has a exportPageBreak() method.

I looked at Page_Exporting and Row_Export server events
There’s no example how to do that.

You may just see the generated code as example, or see the source code.