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
close icon

Poor conversion from HTML to PDF

I am trying to convert a html file (converted from .msg to html using MsgReader), however after the To/CC/Subject the body always moves to a new page in the PDF.

I have attached the html file as an example and code used is from your demo:

Attachment: 6539482_fcd6f591.zip

3 Replies

SN Santhiya Narayanan Syncfusion Team November 9, 2022 08:29 AM

We have checked the provided HTML file with mentioned package on our end. Blink converter internally makes use of chromium executable in headless mode for converting HTML to PDF. Blink rendering engine preserves the output PDF document like how the input HTML file/URL is displayed on the Blink-based web browsers (chrome print preview). Those page formatting are not properly in chrome print preview itself. The same behavior as replicates in our converter. You can check the behavior of the web page by using a chrome print preview.

WI will November 16, 2022 01:04 AM

How to convert HTML pages into PDF files:
  1. On a Windows computer, open an HTML web page in Internet Explorer, Google Chrome, or Firefox. 
  2. Click the “Convert to PDF” button in the Adobe PDF toolbar to start the PDF conversion.
  3. Enter a file name and save your new PDF file in a desired location.


AA Anitha Azhagesan Syncfusion Team November 17, 2022 01:50 AM

Thanks for your suggestion

Live Chat Icon For mobile
Up arrow icon