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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to convert HTML to PDF in ASP.NET Core Linux

Essential PDF supports HTML to PDF conversion in ASP.NET Core application using .NET Standard 2.0.

Minimum product version:

Minimum .NET core version: 2.0.0

For converting HTML to PDF in Linux the below pre-requisite packages should be installed in the Linux machine. To do that enter the following commands in the terminal :


The following assemblies or NuGet package is required for converting HTML to PDF in ASP.NET Core.

Assemblies Required:

  • Syncfusion.Compression.Portable.dll
  • Syncfusion.Pdf.Portable.dll
  • Syncfusion.HtmlConverter.Portable.dll
  • QtBinaries


All the above-mentioned assemblies and QtBinaries can get by downloading the WebKit HTML converter for Linux available in the below link.

WebKit HTML Converter Linux (ZIP file): https://www.syncfusion.com/downloads/latest-version

Please refer below steps to convert HTML to PDF in Linux.

  1. Extract the zip file (syncfusionessentialwebkit.zip) in Linux and open the QtBinaries folder in file explorer.
  2. Provide the execute permission for Syncfusion.WebKitWrapper file inside the QtBinaries folder. Please refer below screenshot,



  1. Open the sample folder (HtmlToPdf.csproj) in Linux terminal, then enter the below commands one by one to run the sample.

dotnet restore

dotnet build

dotnet run

  1. Enter the localhost server path in the web browser to view the result.

Below is the code snippet for converting HTML to PDF in Linux:


Please refer the below UG documentation for more feature details,



Article ID: Published Date: Last Revised Date: Platform: Control:
8481 02/23/2018 04/27/2018 ASP.NET Core PDF
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon