

HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Blink) īlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings() īlinkConverterSettings.BlinkPath = Blink converter settings to HTML converter. Initialize the HTML to PDF converter with the Blink rendering engine. Refer to the following code to convert HTML string to PDF. Otherwise, the converter will throw the Blink assemblies are missing exception. This is mandatory to set the BlinkPath property with the BlinkBinaries folder. Copy the Blink binaries to your local project path and set the path to the BlinkPath property of BlinkConverterSettings. The BlinkBinariesWindows folder is available in the package’s installed location. Next, you need to refer to the Blink binaries like in the following code to run the HTML-to-PDF converter.This NuGet package is for Windows.įor Linux platform: .Core.Linux.įor Mac platform: .Core.Mac. Now, search for the .Core.Windows package and then install it.In the Solution Explorer window, right-click on the project and select Manage NuGet Packages.You can install the HTML-to-PDF library in Visual Studio or with the command line in the NuGet package manager: Install and configure the HTML-to-PDF converter library in your project Automatically create bookmark hierarchy.

Automatically create a table of contents.Convert HTML forms to fillable PDF Forms.Convert ASP.NET Core Web Razor page to PDF.Install and configure the HTML-to-PDF converter library in your project.In this blog post, we are going to cover in detail HTML to PDF conversion in C#, provided by the Syncfusion HTML-to-PDF converter. It can be easily integrated into any application with five simple lines of code. It uses the Chromium Blink engine and WebKit to convert HTML pages to PDF documents. The HTML-to-PDF converter preserves all graphics, text, fonts, links, and the layout of the original HTML document or webpage. Your PDF will look exactly like the webpage you have converted. Using the Syncfusion HTML-to-PDF converter library, you can convert an entire webpage into a PDF file, or just convert a portion of the page with C#. In that case, you need a versatile converter to convert the exact content of HTML to PDF. While going through a webpage, you may want to download the HTML content as a PDF file for further reference. BoldSign – Electronic Signature Software New.
