Example of HTML to PDF in ASP.NET Core PDF Library
This sample demonstrates how to convert a URL to PDF using the HTML to PDF C# library. This PDF is reliable and accurate. This sample also contains many customization options and features.
DEMO
SOURCE
The Syncfusion HTML to PDF converter is a .NET library for converting webpages, SVG, MHTML, and HTML to PDF files using C#. It is reliable and accurate. Also, all graphics, images, text, fonts, and the layout of the original HTML document or webpage are preserved in the converted file.
The HTML-to-PDF converter works seamlessly in various platforms: Azure App Services, Azure Functions, AWS Lambda, Docker, WinForms, WPF, Blazor, ASP.NET MVC, ASP.NET Core with Windows, Linux, and MacOS.
Key features- Converts any webpage to PDF.
- Converts any raw HTML string to PDF.
- Converts a HTML form to a fillable PDF form.
- Automatically creates a Table of Contents.
- Automatically creates a bookmark hierarchy.
- Converts only a part of the web page to PDF.
- Supports PDF header and footer.
- Repeats HTML table header and footer in PDF.
- Supports HTML5, CSS3, SVG, and Web fonts.
- Converts any HTML to an image.
- Converts any SVG to image.