Syncfusion Essential PDF now supports HTML-to-PDF conversion by using the advanced WebKit rendering engine. This converter can easily be integrated into any application of a .NET platform, such as WF, WPF, MVC, and Azure Cloud Service, to convert URLs, HTML strings, SVG, and MHTML to PDF.
The sample showcased here covers most of the important features of HTML-to-PDF conversion. To deploy the sample, you need to install the WebKit HTML converter which is available in the link below.
WebKit HTML Converter: https://www.syncfusion.com/downloads/latest-version?file=webkit
GitHub location of WebKit: https://github.com/syncfusion/SfQtWebKit
After the installation, the WebKitPath property of an instance of WebKitConverterSettings class should be assigned to the QtBinaries directory in the installed location. By default, this will be the installed location.
$Systemdrive\Program Files (x86)\Syncfusion\WebKitHTMLConverter\xx.x.x.xx\QtBinaries
Alternatively, you can place the QtBinaries folder in the application bin folder, which needs no reference in the code behind.
Our Essential PDF WebKit rendering is accurate and the result preserves all the graphics, images, texts, fonts, and layout of the original HTML document/web page.
It does not require external dependencies like browsers, printer drivers, and viewers.
Documentation is also available at: https://help.syncfusion.com/file-formats/pdf/working-with-document-conversions#conversion-using-webkit-rendering
For more information, please refer to our UG documentation: https://help.syncfusion.com/file-formats/pdf/working-with-document-conversions#conversion-using-webkit-rendering