HtmltoPdfConverter::ConvertToImage() creates low quality JPG/PNG images

Hi Syncfusion Team,

My angular app uses Syncfusion's EJ2 diagram control. Since the diagram contains native nodes and custom image nodes, I'm forced to use HTMLtoPDFConvert's Webkit rendering (hosted in an asp.net web API) to print/export the diagram.

The HTMLToPdfConverter::ConvertToImage() method always creates low quality (pixelated, blocky) raster JPG/PNG images. Please see attached gif file.

The resolution of the exported images seems to be just 96 dpi.



Any way I can get HtmlToPdfConverter to generate a higher-resolution image?

PS: I'd like to generate SVG files, which can be infinitely scaled (unlike raster images). However, I'm blocked on that issue.


Thanks,

-Mithun





Attachment: GIF_7202021_125921_PM_72ad8978.zip

1 Reply 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team July 20, 2021 11:33 AM UTC

Hi Mithun, 
 
Thank you for contacting Syncfusion support. 
 
We internally using WebKit rendering engine for converting HTML to Image. By default WebKit rendering engine generates images with high quality, we do not have any other option to improve the quality in HTML to Image conversion. 
 
Please let us know if you need any further assistance on this.  
 
Regards, 
Gowthamraj K 


Marked as answer
Loader.
Up arrow icon