Posted by a ceTe Software moderator
Hello,
The DynamicPDF Converter for .NET library does not have the capability to directly insert a page break at any desired location. However, if you are converting HTML to PDF and have complete control over the HTML being converted, you could insert page breaks in the HTML itself that will cause the page break in the resulting PDF.
string htmlString = @"<html><head> </head><body> <p style=""page-break-after:always;"">Paragraph before page break</p> <p>paragraph after page break</p> </body></html>";
Converter.ConvertHtmlString(htmlString, "test.pdf");
Thanks,
ceTe Software Support Team.