Page break with HTML tables

Hi. I'm trying to convert an HTML document with s into PDF and I'm having an issue when a table reaches a page break (see attachment "Salto.PNG").
I'm using Aspose.Pdf

This is the code:

using (var fs = new FileStream(fileName, FileMode.Create))
var html = ""; // are the contents of
var pdf = new Pdf(fs);
var section = pdf.Sections.Add();

section.PageInfo.PageWidth = Aspose.Pdf.Generator.PageSize.A4Width;
section.PageInfo.PageHeight = Aspose.Pdf.Generator.PageSize.A4Height;

section.PageInfo.Margin.Left = 50;
section.PageInfo.Margin.Right = 50;
section.PageInfo.Margin.Top = 50;
section.PageInfo.Margin.Bottom = 50;

section.Paragraphs.Add(new Text(section, html)
IsHtmlTagSupported = true


I'm attaching the source HTML and a screenshot of the resulting PDF with the error highlighted.
Thanks in advance.


Hi José,

Thanks for contacting support.

I have tested the scenario using new Document Object Model (DOM) of Aspose.Pdf for .NET and as per my observations, the resultant PDF is being generated without any issue. For your reference, I have also attached the resultant file generated with Aspose.Pdf for .NET 8.9.0.

We are sorry for your inconvenience.


// load source HTML file<o:p></o:p>

Document document = new Document(@"C:\pdftest\html\html.html", new HtmlLoadOptions() { UseNewConversionEngine = true });

//save updated document