![]() NET library supports conversion in ASP.NET MVC. Refer to this section for more information about HTML to PDF conversion in ASP.NET Core. NET library supports conversion in ASP.NET Core. Refer to this section for more information about HTML to PDF conversion in Mac. Refer to this section for more information about HTML to PDF conversion in Docker. NET library supports conversion in Docker. ![]() Refer to this section for more information about HTML to PDF conversion in Linux. NET library supports conversion in Linux. Close ( true ) īy executing the program, you will get the PDF document as follows.Ī complete working sample can be downloaded from Github. ReadWrite ) //Save and close the PDF document. FileStream fileStream = new FileStream ( "HTML-to-PDF.pdf", FileMode. ConverterSettings = blinkConverterSettings //Convert URL to PDF document. Size ( 1280, 0 ) //Assign Blink converter settings to HTML converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter () BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings () //Set Blink viewport size. Step 3: Include the following namespace in your class file. ![]() Step 2: Install NuGet package as a reference to your. Please refer to the following steps to include HTML to PDF conversion in your application. Integrating HTML to PDF converter library in any. Get Started with HTML to PDF conversion Convert HTML to PDF in C# Newtonsoft.Json package (v13.0.1 or above).Please refer to the advanced installation steps for more details. Download and install the HTML converter for Windows, Linux, and Mac, respectively. Get the following required assemblies by downloading the HTML converter installer. ![]() If you are using other Syncfusion libraries or components, use the HTML to PDF converter library with the same platform packages. Include the packages based on your requirement. So, separate packages are provided based on OS. The binaries will differ for Windows, Linux, Mac, and AWS. The HTML to PDF converter library internally uses the Blink rendering engine for the conversion. Include the HTML to PDF converter in your project using two approaches.ĭirectly install the NuGet packages to your. Protects PDF document with password and permission.Sets document properties, page settings, security, viewer preferences, and more.Supports internal and external hyperlinks.Supports cookies-based form authentication.Supports accessing HTML pages using both HTTP POST and GET methods.Supports HTML5, CSS3, SVG, and Web fonts.Repeats HTML table header and footer in PDF.Converts only a part of the web page to PDF.Automatically creates bookmark hierarchy.Automatically creates Table of Contents.Converts HTML form to fillable PDF form.Syncfusion HTML-to-PDF converter will work seamlessly in various platforms like Azure Cloud or web apps, Azure Functions, Amazon Web Service (AWS), Docker, WinForms, WPF, ASP.NET MVC, ASP.NET Core with Windows, Linux, and macOS. The result preserves all graphics, images, text, fonts, and the layout of the original HTML document or webpage. It uses popular rendering engines such as Blink (Google Chrome) and is reliable and accurate. NET library for converting webpages, SVG, MHTML, and HTML files to PDF using C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |