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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: ASP.NET Core |
Control: PDF

Syncfusion HTML to PDF for .NET used to convert webpages, SVG, MHTML, and HTML to PDF. Using this library, you can convert HTML to PDF in ASP.NET Core application using .Net Standard 2.0.

Minimum product version:

Minimum .NET core version: 2.0.0

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

Assemblies required:

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

You can get all the previously mentioned assemblies, QtBinaries, and working samples by installing the HTML converter installer for Mac available in the following link.

HTML converter Mac (pkg file): https://www.syncfusion.com/downloads/latest-version


Install the Syncfusion.HtmlToPdfConverter.QtWebKit.Net.Core NuGet package as reference to your .NET Core application from NuGet.org. The NuGet package contains QtBinaries for all platforms (Windows, Linux and Mac). Copy the QtBinariesMac folder from the NuGet package installed location and paste it into your application folder to use it for conversion.

NuGet Installed location: /.nuget/packages/syncfusion.htmltopdfconverter.qtwebkit.net.core/XX.X.X.XX/lib

Use the following code snippet to convert HTML to PDF in ASP.NET Core Mac.


A complete working sample can be downloaded from HTMLtoPDF_Mac.zip

Take a moment to peruse the documentation for Converting HTML to PDF, where you will find various options for URL to PDF, HTML string to PDF, and hyperlinks.

2X faster development

The ultimate ASP.NET Core UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile