HTML to PDF on Linux using net core 3.1 and webkit

We have an azure app service running linux. 

we debloy this example with no issues: https://www.syncfusion.com/kb/10731/how-to-convert-html-to-pdf-in-azure-app-service-linux-using-net-core

but, when upgrade the example to net core 3.1, it stops working.

There is any other steps to do when working with net core 3.1 to achieve the html to pdf conversion? 

2 Replies 1 reply marked as answer

JA Javier A Aguilera October 30, 2020 11:20 PM UTC

Ok, found the issue.

its a dependency missing in debian 10 (the one used in linux app service in azure)

connect with ssh:

nano /etc/apt/sources.list  --> add deb http://security.ubuntu.com/ubuntu bionic-security main

  apt-get install gnupg
  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
  
  apt update && apt-cache policy libssl1.0-dev
  apt-get install libssl1.0-dev
  
  apt-get update && apt-get -y install xvfb && apt-get -y install fontconfig && apt-get -y install libssl1.0-dev && apt-get -y install libx11-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-shm0-dev libxcb-util0-dev libxcb-xfixes0-dev libxcb-xkb-dev libxcb1-dev libxfixes-dev libxrandr-dev libxrender-dev
 
  
  
  


GK Gowthamraj Kumar Syncfusion Team November 2, 2020 11:48 AM UTC

Hi Javier, 

Thank you for your Syncfusion products. We are glad to know that your problem has been solved. 

WebKit HTML converter for Linux has some dependency packages for converting HTML to PDF. By default the Azure server does not have these packages. So, we need to install the packages on the server. Please refer below link for dependency packages for converting HTML to PDF in Linux. 

Please let us know if you need any further assistance with this. 

Regards, 
Gowthamraj K 


Marked as answer
Loader.
Up arrow icon