We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Convert Html to PDF from Asp.net core Web Api

Hi Team,

We are looking at using Syncfusion to generate PDF from a styled Html in Asp.net core Web Api.  We would also like to fill the Html with dynamic data by executing javascript.  Do you have any sample available for this.

3 Replies

SK Surya Kumar Syncfusion Team September 2, 2019 11:44 AM UTC

Hi Neelima, 

Greetings from Syncfusion. 

Please find the KB documentation explaining the HTML to PDF in .Net core platform which contains step by step creation process along with sample from below link: 
Sample link for your reference: 

Surya Kumar 

MR Madhududana Rao Yarra May 7, 2020 09:35 PM UTC

Hi Surya,
I am trying to convert attached html to pdf, But it's not working properly.
Can you please help on this.

Attachment: ProviderSearchHtml_7c4f3df.zip

SL Sowmiya Loganathan Syncfusion Team May 8, 2020 01:41 PM UTC

Hi Madhu,   
Thank you for contacting Syncfusion support.    
We have checked the reported issue with the provided HTML file in the WebKit HTML converter. We internally make use of Qt WebKit rendering engine for converting HTML to PDF. In the provided HTML file, you are using bootstrap4 styles, but some of the Bootstrap4 styles are not supported in the WebKit rendering engine itself.   
The provided HTML file is converted properly in our Blink rendering engine. We have suggested you to try our new Blink based HTML converter to achieve your requirement. Blink converter internally makes use of chromium executable in headless mode for converting HTML to PDF. We have shared the output PDF document (Blink) for your reference,    
Kindly refer below link for more information about our Blink converter.      
Please let us know if you need any further assistance with this.    
Sowmiya Loganathan 

Live Chat Icon For mobile
Up arrow icon