Hi,
We are rendering a PDF using HTML stored in a SharePoint list item. But we do notice some issues with table rendering.
The HTML code I used is attached as "HTMLCode.txt" this HTML has two tables in it. The upper table is copied directly from Excel to SharePoint. The second one is the same table but manually modified to remove the <colgroup> tags.
The resulting pdf is also attached as "print.pdf" here you can see the original table falls of the page while the second table is much smaller. It seems when we remove the <colgroup> tag the rendering does not take the table or cell widths in account. While the HTML should be correct as we can see in the "Html Render.png" attachment which is rendered in the browser. (IE11)
This is a big issue for our customer project. At the moment we have to write extra custom code to remove the <colgroup> tags just to make sure the table is always on the page. But losing the formatting in the progress is unacceptable. Because of project deadlines we had to set this solution in production but only as a temporary fix.
Could you provide us with a proper solution? And if this requires a new version an ETA of said new version so we can communicate this with our customer.
We are using the latest version of PDF.NET 10.1.0