We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Html string to Pdf Conversion (Blink) Problems with Version > 20.1.X.X

We have an application that creates Pdf pages by using various Syncfusion components, such as PdfGrid,

PdfSectionTemplate and so on. There are also some pages that have their content created from a html string by using the HtmlToPdfConverter with the Blink rendering engine. All pages have a header as well as a footer.

This works perfectly fine up to version 20.1.0.61.


Problems start occuring when updating the Syncfusion libraries "Syncfusion.HtmlToPdfConverter.Blink.Net.Core.Windows" and "Syncfusion.Pdf.Net.Core" to a version higher than 20.1.0.61.

After updating the libraries (and not changing the code that creates the pdfs in any way), the pages that use the HtmlToPdfConverter have their layout scrambled.

The header is missing completely, the html content is at the wrong location (not centered horizontally or vertically) and the footer is also misplaced and does not have the correct width.

All pages that do not use the HtmlToPdfConverter do still work perfectly fine.


We tried updating the libraries to 20.2.X.X as well as 20.3.X.X (we know that with version 20.3.0.47 the packages were renamed) but the problem persists.


When looking at the release notes, we could not find anything that would indicate or explain this bahavior.

Is this a known bug?

Is there anything we can to to update to the latest libraries without having to change our code?


Thank you for your time.


Kind regards

Phil


3 Replies 1 reply marked as answer

SN Santhiya Narayanan Syncfusion Team November 2, 2022 08:57 AM

We suspect that the problem may occur only in particular HTML styles specific. We request you to share the complete input HTML files/URL (styles, script, etc) , complete code snippet, and output document to check this on our end. So, it will be helpful for us to analyze and assist you further on this.



PH Phil November 3, 2022 02:58 AM

Thank you for your reply.


Unfortunately it is not possible for us to share code in the public forum.

Therefore we created a ticket and attached the code there.


Should we find a solution/workaround that does not show our code, it can be posted in this thread.



PH Phil November 16, 2022 06:09 AM

As a follow up for anyone else having this issue.


Syncfusion fixed the problem with version 20.3.0.57.


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon