- Home
- Forum
- ASP.NET Core - EJ 2
- Syncfusion.Pdf.PdfException: Html conversion failed
Syncfusion.Pdf.PdfException: Html conversion failed
- https://www.syncfusion.com/kb/8208/failed-to-convert-the-webpage-exception-with-webkit-html-converter
I've been trying to get it to work, but function times out while calling HtmlToPdfConverter.ConvertToImage()
I see from Gowthamraj's comments in this article's thread that consumption plan is not supported for this solution. Just wanted to check whether anything has changed since then.
I have Azure Function 2.0 runtime dot net core 3.1. I facing the Html conversion error. I have also unchecked the run from the package file option. When I ran in the local machine it works fine.
Does anyone have any other suggestions for this issue?
I followed this article https://www.syncfusion.com/kb/10301/how-to-convert-html-to-pdf-in-azure-functions-2-0
Thank you,
Sagar Thakkar
- Open the Azure portal in browser.
- Navigate to the deployed Azure function in Azure portal.
- Open the console of Azure function.
- As we said earlier, QtBinaries assemblies are not copied properly while publish to Azure functions.
- So, we need to manually copy all the assemblies from azure portal.
- QtBinariesWindows from location “c:\home\site\wwwroot\QtBinariesWindows” does not have all the assemblies, so we need to copy all the assemblies and inner folder from bin folder.
- Using cd command, navigate to the location “c:\home\site\wwwroot\bin\QtBinariesWindows” and run the below command.
|
cp *.* c:\home\site\wwwroot\QtBinariesWindows\ |
- Then we need to copy the files from “platform” and “imageformats” folders using the same approach.
- Using cd command, navigate to the location “c:\home\site\wwwroot\bin\QtBinariesWindows\platforms” and run the below command.
|
cp *.* c:\home\site\wwwroot\QtBinariesWindows\platforms |
- Using cd command, navigate to the location “c:\home\site\wwwroot\bin\QtBinariesWindows\imageformats” and run the below command.
|
cp *.* c:\home\site\wwwroot\QtBinariesWindows\imageformats |
- Ensure the all the files are copied to “c:\home\site\wwwroot\QtBinariesWindows” location using dir command. Also, ensure the inner folders (imageformats, platforms) has all the files.
- Now try the conversion from Azure function URL.
- We need to copy this assemblies for the first time only.
Hi All,
We are getting this below error when one of our function in our application uses : htmltopdf converter
Currently we are checking the reported issue on our end and will update the further details on december 6th,2023
You need to provide full access permissions to IIS_IUSRS on the production server. If you are unable to provide these permissions in the production server environment, you can set the tempPath and blink path and then provide read/write/execute permissions to that folder for the respective group.
Please find the below UG link
https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit#troubleshooting
https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit#temporary-path
https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit#webkitpath
Please ensure that the assemblies (MSVCP100.dll, MSVCR100.dll) are available on the production server.
Please refer the below UG link
https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit#vc-redistributable
to which folders I need to provide full access : for IIS_IUSRS ?
Hi Srinivas,
Kindly provide full permissions to the webkit TempPath folder and Qtbinaries folder in your production server for the IIS_IUSRS user group. Please refer to the screenshot for your reference.
As we said earlier, Kindly check the VC redistributable files (MSVCP100.dll, MSVCR100.dll) and Qtbinaries are properly copied into the Production server. Please refer to the previously shared troubleshooting section documentation link to resolve this issue.
Regards,
Karmegam
After completing the above setup in IIS , when our application runs for first time when this is syncfusion is used in any new transaction getting same error , but however within same sessions the following transaction we are not facing this issueIs there any reason behind this? it doesnt look like cache issue also , since even we tried to clear cache and run the method against the transaction which failed in first instance - we are getting same error repeatedly , however if we move to next transaction data and execute the method which uses syncfusion from there on no issuesi.e. if one data is success , anything following that is not having issues , but first time when executed data only having issue
I have also tried all the above possibilities suggested above in prod server but issue is not resolved , I have given entire c and d drives for permission of IIS IUSR but not resolved
I have checked for DLL mentioned also in prod server , everything is same.
Hi Srinivas,
We have created a new ticket under your account to follow up with this query. We suggest you to follow up with the ticket for further updates. Please login using the below link.
https://support.syncfusion.com/agent/tickets/530672
Regards,
Karmegam
I dont have access to the above link
Sorry for the inconvenience.
Kindly ignore the previously provided link, please try login using this link: https://support.syncfusion.com/support
- 26 Replies
- 10 Participants
-
MI Mithun
- Oct 15, 2019 06:39 AM UTC
- Dec 11, 2023 01:08 PM UTC