I am using the WebKit & Syncfusion libraries to generate a PDF from Html. I am doing this inside a .NET 4.6 Web Api project. I have been successful in generating a PDF, however, my included images are not showing.
Can you please assist?
Note: how I set the baseUrl value, the “bin\Email\Template\images” folder.
Yet the PDF appears as attached screenshot
The HTML for the image tag is :
<img src="LogoSalarySolutions.png" width="200" height="29" alt="Salary Solutions" />
thanks
|
//Get base URL of the resources
string baseUrl = Server.MapPath("~/bin/Email/Templates/Images/"); |
For HTML to PDF conversion, do I require all of them?
Will it work with a smaller subset deployed in my ASP.NET Web API solution?
|
Query |
Response |
|
Do I need to do anything with my current trail libraries? Or is it the same version of the DLL’s that I downloaded for the trial as you would download for the licensed version? |
There is no difference between Syncfusion trial libraries and licensed libraries. You can use same version of the libraries for your development.
Also, you need to register the Syncfusion License key using Syncfusion License Manager utility from the Syncfusion Control Panel. Please refer the below documentation link for more information.
|
|
Currently I have included all these QtBinaries files in my deployment and they total about 60mb.
For HTML to PDF conversion, do I require all of them?
Will it work with a smaller subset deployed in my ASP.NET Web API solution? |
Yes, HTML to PDF conversion requires all QtBinaries assemblies. If all QtBinaries are available, then the conversion will be working fine in the application. |