razor component to pdf

Helo,
I'm trying to use html to pdf and it working well with standart html page. But when i use it on blazor webpage it always print the index.html not the actual page.
so when im using blazor there always "loading..." text first and then the blazor load all the content. When im using htmltopdf, the one that being created are the "loading..." text, not the actual page after it load.
how can i fixed this? is there any suggestion or solution?

Best Regard

1 Reply 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team January 8, 2021 01:06 PM UTC

Hi Indra, 
 
Thank you for contacting Syncfusion support.   
   
We suspect that the reported loading issue may occur due to loading the external resources (styles, scripts, images, etc.,) from the web page. Kindly try the additional delay to the converter for loading the external resources (styles, scripts, images, etc.,). Can you please try the conversion with additional delay and let us know the result.     
  
Please refer to the below code snippet for setting the Additional Delay property to converter settings, 

//Set additional delay; units in milliseconds 
settings.AdditionalDelay = 5000; 
 
Please refer to the below links for more information, 
 
Note: If you are trying to convert HTML string to PDF, we have to specify the base URL (path of the resources) to load the external images/scripts/styles used in the HTML string. So, please make sure that the provided path (Base URL) contains (styles, scripts, images) used in the HTML string.    
   
If you are facing any issue, kindly provide more details such as complete input HTML file (all the resources such as images, scripts, styles), complete code snippet, sample, product version to check the issue on our end. So, that it will be helpful for us to analyze and assist you further on this.   
 
Regards, 
Gowthamraj K 


Marked as answer
Loader.
Up arrow icon