HTMLToPDFConverter.QtWebKit.Net.Core doesn't always create the Same Document

We are using Syncfusion Version 19.3.0.53 and we are Developing with ASP.NET Core 2.2 on Windows


Sometimes when we create Documents, they don't look the Same. The Fontsize is sometimes smaller than it should be. The Attached Images were Screenshotted at the Same Zoom Ratio. The Documents from which the Screenshots originate were Created right after eachother on the same System without changing anything apart from Reloading. The Document which was too Small was created right after i made some of the Margins smaller and reloaded the View from which we generate the PDF. Then right after that i reloaded the Page again and it was the Right size again. Also We are Converting the PDF from a URL


EDIT: On our local System i got it to work, i found out that the whole page gets distorted to smaller when it has a very long sequence of Underscores "___________". But if we run it on a Windows Azure WebApp the PDF only gets generated with the correct font-size 50% of the Time. The other 50% the font-size is much too small


Attachment: TextSizeComparison_945d30d1.zip


6 Replies

GK Gowthamraj Kumar Syncfusion Team December 1, 2021 09:06 AM UTC

Hi Chris, 
 
Thank you for contacting Syncfusion support. 

We have tried to reproduce the reported issue with Html URL to PDF conversion, but it is working properly. Syncfusion Html to PDF converter preserves the output PDF document like how the input HTML file/URL is displayed on the WebKit/Chrome based web browsers. Kindly provide more details such as complete input HTML file/URL (with all resources style, fonts, scripts, etc.,), complete code snippet or modified sample, Azure Environment details (OS, bit version, culture settings, RAM size etc.,) , Azure subscription details (app service), target OS, published profile details (Region, Size, hosting plans, etc.,) to replicate the issue in our end. So, that it will be helpful for us to analyse and assist you further on this. 
 
 
We have attached the sample for your reference, please try the sample on your end and let us know the result. 
Please refer the below documentation link for more information,  
 
Regards, 
Gowthamraj K 



CH Chris December 1, 2021 02:26 PM UTC

OS: Windows

Bit Version: 64x

RAM SIZE: 1.75GB

Target OS: Windows

Region: West Europe

App Service Plan: S1



Attachment: RelevantFiles_Summarized_28817a6b.zip


GK Gowthamraj Kumar Syncfusion Team December 2, 2021 12:28 PM UTC

Hi Chris, 
 
Thank you for sharing the details. 
 
In the provided attachment contain code snippet, CSS styles and output document alone. Few requested details (HTML URL or webpage related details) are missing for reproducing the reported issue. Please find the below screenshot of your attachment, 
 
 
 
We request you to share the HTML URL, values of below red underline, simple sample with steps to replicate the issue on our end. So, that it will be helpful for us to analyse and assist you further on this.    
 
 
Regards, 
Gowthamraj K 



CH Chris December 2, 2021 01:34 PM UTC

It seems that i forgot to add the HTML File to the Folder.


The URL is not an open one so it won't be neccessary or useful to you. But the HTML File (The output of the URL you are requesting) is now in the Attachments. This Folder should now contain everything needed


Attachment: RelevantFiles_Summarized_WithWebsite_75b11f60.zip


GK Gowthamraj Kumar Syncfusion Team December 3, 2021 01:56 PM UTC

Hi Chris,   
 
Thank you for sharing the details.
 
 
Currently, we are trying to reproduce the issue with same Azure environment on our end and we will update the further details by December 7th 2021. 
 
Regards,  
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team December 7, 2021 02:01 PM UTC

Hi Chris, 
 
Thank you for your patience.

We have checked the HTML to PDF conversion with provided HTML file in local and Azure environment, but we get an same output document result for both local and Azure. We were not able to reproduce the preservation issue.
We have attached the Azure sample for your reference, please try the sample on your end and let us know the result. 
 
 
The below host link will be active only 2 days, 
Please refer the below link for more information, 
Since the reported issue occurs in some PDF document, so we request you to share the modified sample with steps to replicate the issue in our end. So, that it will be helpful for us to analyse and assist you further on this.    
 
Regards, 
Gowthamraj K 


Loader.
Up arrow icon