[HtmlToPDFConverter with Webkit] Export to SVG does not work for non-english characters.

Hello Syncfusion team,

This issue may or may not be related to issue # 171668.

I'm using @syncfusion/ej2-angular-diagrams (version 19.3.55) and Syncfusion.HtmlToPdfConverter.QtWebKit.Net.Core (version 19.4.0.38) in my app.

I have SVG nodes in my app, and consequently, to print these, I have to call DiagramComponent::getDiagramContent() and send it server-side (linux) and export it with HtmlToPdfConverter.

While exporting to SVG, the non-english annotations are not printing properly. See example below:

Original diagram:



Exported SVG:


I've attached the necessary details: diagram json, exported svg file, output from DiagramComponent::getDiagramContent() etc.

I'm using UTF8 as the HTMLEncoding for WebKitConverterSettings.


Please let me know if any additional details are needed.

Thanks,

-Mithun


Attachment: exporttosvgissue_20d2b4e.zip

2 Replies

SG Shyam G Syncfusion Team January 10, 2022 01:37 PM UTC

Hi Mithun,

Currently, we are analyzing on this reported issue in linux docker on our end and we will update the further details on January 12th 2022.


Regards,

Shyam G



SG Sivaram Gunabalan Syncfusion Team January 12, 2022 03:40 PM UTC

Hi Mithun, 
 
We have checked the conversion with provided HTML file and the text rendering with overlap content . We internally make use of Qt WebKit rendering engine for converting HTML to PDF/SVG. WebKit rendering engine preserves the output PDF/SVG document like how the input HTML file/URL is displayed on the WebKit based web browsers (safari), those text are overlap in web browser itself. The same behavior as replicates in our converter. You can check these HTML webpage with Safari, we have attached a screenshot of the webpage view in safari browser for your reference. So we could not proceed further with WebKit rendering engine. 
 
 
 
Regards, 
Sivaram G 


Loader.
Up arrow icon