I am trying to convert html string to pdf along with some necessary css styles. Everything was working fine but now i have many records in one pdf and when it convert my table start on page 1 and ends on page 2 but pdf is looking like a broken image. Is there any work around for this in syncfusion?
PVPrakash Viswanathan Syncfusion Team March 28, 2017 12:04 PM UTC
Thanks for contacting Syncfusion support.
We suspect that the broken images may occurs due to HTML converter cannot find the resources which are used in the input HTML string. While converting HTML string to PDF, we need to specify the base URL of the resources (Image, styles, scripts etc.,) used in the HTML document. If we not provide the base URL then the resources will be skipped in the result. We have attached sample for converting HTML string to PDF with image using our WebKit HTML converter.
PVPrakash Viswanathan Syncfusion Team April 4, 2017 07:11 AM UTC
Thanks for the update.
We have analyzed the documents and code snippet you have provided. In our IE based HTML to PDF converter, we internally make use of MSHTML (IE rendering engine) to convert HTML to vector images. From the images, we will render the PDF document. Microsoft has changed its behavior from IE 9 and above, that IE will generate bitmap images instead of vector images. So, we could not parse the text in the image and could not handle the text splitting in our converter. To overcome this behavior, we have to enable legacy drawing from the registry settings. Please refer below kb link to avoid bitmapped output,
Note: If the input HTML contains HTML-5 or CSS-3, IE(MSHTML) will only generate bitmapped output images, and this issue could not be fixed with IE HTML converter.
Suggestion: We suggest you try our new WebKit HTML converter. WebKit converter never produces bitmap document and it has more features and enhancement than IE based HTML converter. Kindly refer below link for more information of our WebKit converter.