Error converting HTML to PDF from URL on Ubuntu 18.0.04 LTS

Error:
Syncfusion.Pdf.PdfException: /usr/bin/xvfb-run: 184: /usr/bin/xvfb-run: /opt/diversion/QtBinaries/unix/Syncfusion.WebKitWrapper: Permission denied
   at Syncfusion.HtmlConverter.HtmlConverter.ConvertHtmlToPdf(String url, Int32 width, Int32 height, String tempFile)
   at Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String url)
   at Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String url, PdfLayoutResult& layout)

Steps taken to resolve the issue:
- Ensure running username has full access permissions to '/tmp'
- Set WebKitConverterSettings.TempPath to specific folder with full access permissions
- Give running username full access permissions to application files and folders

1 Reply

SL Sowmiya Loganathan Syncfusion Team April 9, 2020 12:25 PM UTC

Hi Andrian,   
  
Thank you for contacting Syncfusion products.    
  
The reported error may occur if the Syncfusion.WebKitWrapper does not have read/write/execute permission. Kindly allow the WebKit wrapper file to executing the file as a program to resolve the reported issue. Refer below screenshot and KB link for more details,   
  
  
     
  
Also, please make sure you have installed all the pre-requisites required for HTML to PDF conversion in Linux. Please refer below links for more details.   
   
Regards, 
Sowmiya Loganathan  


Loader.
Up arrow icon