Html table split across two pages

I’m converting a html string to pdf, is there any way to prevent tables spreading over multiple pages? This is my code:


HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions();
htmlLoadOptions.PageInfo.Margin.Bottom = 10;
htmlLoadOptions.PageInfo.Margin.Top = 20;
//Load HTML string
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(html)), htmlLoadOptions);
//Save PDF file
doc.Save(path);

Thanks

Hi Carl,


Thanks for your inquiry. We will appreciate it if you please share your sample HTML file here, so we will look into it and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi Tilal,


Please find attached my sample HTML file, please change the file extension to .html

Regards

Hi Carl,


Thanks for sharing your source HTML. I have tested the HTML to PDF conversion scenario and noticed that Html tables are splitting across two pages. I am afraid currently there is no option available to avoid this issue, so logged an investigation ticket PDFNET-40966 in our issue tracking system for further investigation and rectification. We will keep you updated about the issue resolution progress.

We are sorry for the inconvenience caused.

Best Regards,

Hi Tilal,

When will we get an update on this?


Regards

Hi Carl,


Thanks for your patience.

As we recently have noticed earlier reported issue, so its pending for review and is not yet resolved. However the product team will surely consider investigating/fixing it as per development schedule and as soon as we have some definite updates regarding its resolution, we will let you know. Please be patient and spare us little time. We are sorry for this delay and inconvenience.

Hi Nayyer,


How long do you think this will take to be fixed by your team?

Regards

Hi Carl,


Thanks for your patience.

As shared earlier, the issue is pending for review and unless the product team has properly investigated the issue and have figured out the actual reasons behind this problem, we may not be able to share the possible timelines regarding its resolution. However as soon as we have some definite updates, we will let you know.

Please be patient and spare us little time.

Hi Nayyer,


We are still waiting for a timeline for the issue resolution since already one month. We have purchased a license under the assumption this issue won’t sit there for longer, however not only the issue has not been resolved yet, but there’s also no timescale as to when it could be fixed.

Regards

Hi Carl,


We are sorry for the inconvenience. Your reported issue is still pending for investigation in the queue, with other priority issues. However we have requested our product team to complete the investigation and share an ETA/workaround at their earliest. We will keep you updated about the issue resolution progress.

Thanks for your patience and cooperation.

Best Regards,

Hi Carl,


Thanks for your patience. We have investigated the issue and I am afraid we can not manipulate HTML table in Aspose.Pdf to keep it together. However you can control it in HTML element, table cell in our case, by using ‘page-break-inside’ (http://www.w3schools.com/cssref/pr_print_pagebi.asp) property. Hopefully it will help you to accomplish the task.

We are sorry for the inconvenience.

Best Regards,