TL;DR: Curious about HTML-to-PDF conversion in C#? Discover how Syncfusion’s library simplifies the process, from installation to advanced features like form conversion and PDF encryption.
While going through a webpage, you may want to download the HTML content as a PDF file for further reference. In that case, you need a versatile converter to convert the exact content of HTML to PDF.
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#. Your PDF will look exactly like the webpage you have converted. The HTML-to-PDF converter preserves all graphics, text, fonts, links, and the layout of the original HTML document or webpage. It uses the Chromium Blink engine to convert HTML pages to PDF documents. It can be easily integrated into any application with five simple lines of code.
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.
Contents:
You can install the HTML-to-PDF library in Visual Studio or with the command line in the NuGet package manager:
//Initialize HTML to PDF converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); //Convert URL to PDF document. PdfDocument document = htmlConverter.Convert("<h1>Hello world</h1>", ""); //Create the filestream to save the PDF document. FileStream fileStream = new FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and closes the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
You can also convert HTML files with images, CSS, forms, hyperlinks, and JavaScript to a PDF document.
Refer to the following code example to convert a local HTML file to PDF.
//Initialize HTML to PDF converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); //Convert URL to PDF document. PdfDocument document = htmlConverter.Convert(Path.GetFullPath("../../../input.html")); //Create the filestream to save the PDF document. FileStream fileStream = new FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and closes the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
You can easily convert a URL to a PDF with a few lines of code. Using this option, you can create a well-formatted PDF document from your webpage.
Refer to the following code example to convert an existing URL to PDF.
//Initialize HTML to PDF converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); //Convert URL to PDF document. PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com/"); //Create the filestream to save the PDF document. FileStream fileStream = new FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and closes the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
With the help of our Syncfusion HTML-to-PDF converter, you can convert the ASP.NET core Razor pages to PDF with a few lines of code in C#.
Refer to the following code example to convert an ASP.NET Core web Razor page to PDF.
public async Task<IActionResult> OnPostAsync() { //Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); blinkConverterSettings.ViewPortSize = new Syncfusion.Drawing.Size(1440, 0); //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; string url = Microsoft.AspNetCore.Http.Extensions.UriHelper.GetEncodedUrl(HttpContext.Request); //Convert existing current page URL to PDF. PdfDocument document = htmlConverter.Convert(url); //Saving the PDF to the MemoryStream. MemoryStream stream = new MemoryStream(); document.Save(stream); //Download the PDF document in the browser. return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "Output.pdf"); }
By executing this example, you will get a PDF document like in the following image.
This topic will explain how to convert an ASP.NET Core MVC view to PDF. An MVC application has a separate view and controller. Here, we are going to convert the current view to PDF.
Refer to the following code example to convert an ASP.NET Core MVC view to PDF.
public IActionResult ExportToPDF() { //Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings settings = new BlinkConverterSettings(); settings.ViewPortSize = new Syncfusion.Drawing.Size(1440, 0); //Assign Blink settings to HTML converter. htmlConverter.ConverterSettings = settings; //Get the current URL. string url = Microsoft.AspNetCore.Http.Extensions.UriHelper.GetEncodedUrl(HttpContext.Request); url = url.Substring(0, url.LastIndexOf('/')); //Convert URL to PDF. PdfDocument document = htmlConverter.Convert(url); MemoryStream stream = new MemoryStream(); document.Save(stream); return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "MVC_view_to_PDF.pdf"); } }
By executing this example, you will get a PDF document like in the following image.
With the HTML-to-PDF converter library, you can easily convert the web form fields to an interactive PDF form in C#. Enable the EnableForm property by setting its value as true to convert an HTML form to PDF form.
Refer to the following code example to convert HTML forms to PDF forms.
//Initialize HTML to PDF converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); //Convert web forms to PDF interactive forms. blinkConverterSettings.EnableForm = true; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert URL to PDF document. PdfDocument document = htmlConverter.Convert(Path.GetFullPath("../../../Input.html")); //Create the filestream to save the PDF document. FileStream fileStream = new FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and closes the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
The Blink rendering engine also provides support for converting part of an HTML document like a table, a div, or image elements from the URL or HTML string. You can convert the HTML element by specifying the HTML element ID like in the following code example.
//Initialize HTML to PDF converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); //Convert URL to PDF document. PdfDocument document = htmlConverter.ConvertPartialHtml(File.ReadAllText("../../../../../Data/partialdemo.html"), "", "details"); //Create the filestream to save the PDF document. FileStream fileStream = new FileStream("Partial-webpage-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and closes the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
Our Syncfusion HTML-to-PDF converter can convert any webpage to a PDF file. However, some webpages require authentication before access can be granted. In such cases, we have to provide the authentication details to the converter. That way, the converter can log in to access the page.
In this section, we are going to convert webpages with various authentication types into PDF.
The HTML-to-PDF converter for C# can convert webpages that use the ASP.NET forms authentication mechanism to login.
In this case, if the forms authentication is set to use cookies to store the forms-authentication ticket, then the corresponding cookie needs to be sent by the converter to the page that is to be converted.
You can set the value of the cookie in the Cookies property available in the BlinkConverterSettings.
Refer to the following code snippets to convert the secured webpage to PDF.
string cookieName = ".AspNetCore.Identity.Application"; //Get cookie value from HttpRequest object for the requested page. string cookieValue = string.Empty; if (Request.Cookies[cookieName] != null) { cookieValue = Request.Cookies[cookieName]; } //Initialize HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings settings = new BlinkConverterSettings(); settings.ViewPortSize = new Syncfusion.Drawing.Size(1440, 0); //Add cookies as name and value pair. settings.Cookies.Add(cookieName, cookieValue); //Assign Blink settings to HTML converter. htmlConverter.ConverterSettings = settings; //Get the current URL. string url = Microsoft.AspNetCore.Http.Extensions.UriHelper.GetEncodedUrl(HttpContext.Request); url = url.Substring(0, url.LastIndexOf('/')); //Convert URL to PDF. PdfDocument document = htmlConverter.Convert(url); MemoryStream stream = new MemoryStream(); document.Save(stream); return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "MVC_view_to_PDF.pdf");
By executing this example, you will get a PDF document like in the following image.
The webpage you want to convert may be protected with Windows authentication. The Blink rendering engine provides support for converting Windows authenticated webpages to a PDF document by providing the username and password.
Refer to the following code example.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); blinkConverterSettings.Username = "username"; blinkConverterSettings.Password = "password"; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert URL to PDF. PdfDocument document = htmlConverter.Convert("https://www.example.com"); FileStream fileStream = new FileStream("Sample.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
Amazon Web Services (AWS) is a comprehensive cloud platform. It allows us to host our apps quickly and securely.
Using the Syncfusion HTML-to-PDF converter library, you can easily deploy your apps in AWS to convert HTML or any webpage into a PDF document.
Note: For more details, refer to the HTML-to-PDF file conversion in AWS documentation and our GitHub demo.
Docker is an open-source platform for building, testing, and deploying apps in any environment quickly. Docker applications run in containers that can be used on any system: a developer’s laptop, systems on premises, or in the cloud.
Use our HTML-to-PDF converter library to convert HTML or any webpage into a PDF document in Docker.
Note: For more details, refer to the HTML-to-PDF file conversion in Docker documentation and our GitHub demo.
Azure App Service is a platform as a service (PaaS). It allows you to create and deploy web and mobile apps with the cloud service for any platform or device.
Using our Syncfusion HTML-to-PDF converter library, users can convert HTML or any webpage into a PDF document in Azure App Service on Linux with or without a Docker container.
Note: For more details, refer to:
Azure Functions is a serverless cloud-native service. With it, you can deploy and execute code without any web server or configurations.
You can use our HTML-to-PDF converter library to easily convert HTML or any webpage into a PDF document in Azure Functions.
Note: For more details, refer to converting HTML-to-PDF file in Azure App Function Linux documentation and GitHub demo.
Also, the HTML-to-PDF converter for C# supports transmitting parameters to a webpage. There are two methods to access a webpage:
By default, Blink uses the GET method. By using the HTTP GET method, the parameters can be passed in the query string.
In the POST method, you can pass the parameters using the HttpPostFields property.
Refer to the following code example to access a webpage using the HTTP POST method.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings settings = new BlinkConverterSettings(); //Add HTTP post parameters to HttpPostFields. settings.HttpPostFields.Add("firstName", "Andrew"); settings.HttpPostFields.Add("lastName", "Fuller"); //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = settings; //Convert URL to PDF. PdfDocument document = htmlConverter.Convert("https://www.example.com"); FileStream fileStream = new FileStream("Sample.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
Use the following code snippet to access a webpage using the HTTP GET method.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings settings = new BlinkConverterSettings(); string url = "https://www.example.com"; Uri getMethodUri = new Uri(url); string httpGetData = getMethodUri.Query.Length > 0 ? "&" : "?" + String.Format("{0}={1}", "firstName", "Andrew"); httpGetData += String.Format("&{0}={1}", "lastName", "Fuller"); string urlToConvert = url + httpGetData; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = settings; //Convert URL to PDF. PdfDocument document = htmlConverter.Convert(urlToConvert); FileStream fileStream = new FileStream("Sample.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
The Syncfusion HTML-to-PDF converter supports both system proxy and manual proxy.
By default, the HTML-to-PDF converter for C# uses system proxy settings for converting HTML to PDF. If the proxy server is configured in the system, then the rendering engine automatically uses the same settings for the conversion.
Follow these steps to configure the system proxy settings:
You can specify the manual proxy settings for the conversion using the ProxySettings property.
Refer to the following code example to configure the manual proxy settings for the HTML-to-PDF conversion.
//Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings settings = new BlinkConverterSettings(); //Set manual proxy settings. settings.ProxySettings.HostName = "127.0.0.1"; settings.ProxySettings.PortNumber = 8080; settings.ProxySettings.Type = BlinkProxyType.HTTP; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = settings; //Convert URL to PDF. PdfDocument document = htmlConverter.Convert("https://www.google.com"); FileStream fileStream = new FileStream("Sample.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
You can adjust the HTML content size in a PDF using the ViewPortSize property of the HTML-to-PDF converter for C#.
Refer to the following code example to adjust the viewport size.
//Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); //Set Blink viewport size. blinkConverterSettings.ViewPortSize = new Size(800, 0); //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert URL to PDF. PdfDocument document = htmlConverter.Convert("https://www.google.com"); FileStream fileStream = new FileStream("Sample.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
Additional delay is the waiting time of the converter to load external resources (styles, scripts, images, etc.). You can set that delay time using the AdditionalDelay property while converting HTML to PDF.
Refer to the following code example to set additional delay time.
//Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); // Set additional delay; units in milliseconds. blinkConverterSettings.AdditionalDelay = 3000; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert URL to PDF. PdfDocument document = htmlConverter.Convert("https://www.google.com"); FileStream fileStream = new FileStream("Sample.pdf", FileMode.CreateNew, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
With the HTML-to-PDF converter for C#, you can place common content applicable for all the pages either in the header or the footer.
You can also add images, text, shapes, page numbers, and hyperlinks in the header and footers.
Note: For more information, refer to Working with Headers and Footers documentation.
Refer to the following code snippet.
static void Main(string[] args) { //Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); //Adding header. blinkConverterSettings.PdfHeader = CreateHeader(); //Adding footer. blinkConverterSettings.PdfFooter = CreateFooter(); //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert HTML File to PDF. PdfDocument document = htmlConverter.Convert(Path.GetFullPath("../../../../../Data/html_file_converter.htm")); FileStream fileStream = new FileStream("Headers_and_Footers.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true); } //Create header for HTML to PDF converter. public static PdfPageTemplateElement CreateHeader() { RectangleF bounds = new RectangleF(0, 0, PdfPageSize.A4.Width, 30); //Create a new page template and assigning the bounds. PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14); PdfBrush brush = new PdfSolidBrush(Color.Black); string headerText = "Syncfusion HTML to PDF Converter"; SizeF textSize = font.MeasureString(headerText); string date = DateTime.Now.ToString("dd/M/yyyy"); //Create a text field to draw in header. PdfCompositeField compositeField = new PdfCompositeField(font, brush, headerText); //Drawing text field in header. compositeField.Draw(header.Graphics, new PointF((bounds.Width - textSize.Width) / 2, 5)); //Drawing date text in header. header.Graphics.DrawString(date, font, brush, new PointF(10, 5)); //Drawing line in header. header.Graphics.DrawLine(PdfPens.Gray, new PointF(0, bounds.Height - 2), new PointF(bounds.Width, bounds.Height - 2)); return header; } //Create footer for HTML to PDF converter. public static PdfPageTemplateElement CreateFooter() { RectangleF bounds = new RectangleF(0, 0, PdfPageSize.A4.Width, 30); //Create a new page template and assigning the bounds. PdfPageTemplateElement footer = new PdfPageTemplateElement(bounds); PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 7); PdfBrush brush = new PdfSolidBrush(Color.Black); string footerText = "Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved"; SizeF textSize = font.MeasureString(footerText); //Create a text field to draw in the footer. PdfCompositeField compositeField = new PdfCompositeField(font, brush, footerText); //Create page number field to show page numbering in footer, this field automatically gets an update for each page. PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); PdfPageCountField count = new PdfPageCountField(font, brush); PdfCompositeField pageNumberField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); //Drawing line in footer. footer.Graphics.DrawLine(PdfPens.Gray, new PointF(0, 2), new PointF(bounds.Width, 2)); //Drawing text field in footer compositeField.Draw(footer.Graphics, new PointF((bounds.Width - textSize.Width) / 2, 5)); //Drawing page number field in footer. pageNumberField.Draw(footer.Graphics, new PointF((bounds.Width - 70), 5)); return footer; }
By executing this example, you will get a PDF document like in the following image.
A table of contents helps us easily navigate within a document while searching for a piece of specific information or a topic. With the help of the HTML-to-PDF converter, you can automatically create a table of contents in a PDF document using C#.
To do so, you just need to enable the EnableToc property in the converter settings. Then, the TOC will be automatically created from the <h> tag. There’s support for <h1> to <h6> header levels.
Refer to the following code example to automatically create a table of content in a PDF document.
//Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); //Enable automatic TOC creation. blinkConverterSettings.EnableToc = true; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert HTML File to PDF. PdfDocument document = htmlConverter.Convert("https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/blink"); FileStream fileStream = new FileStream("toc_creation.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
You can also customize the style of the TOC using the HtmlToPdfTocStyle API.
Refer to the following code snippet to customize the level 1 (H1) heading in a TOC.
//Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); //Enable automatic TOC creation. blinkConverterSettings.EnableToc = true; //Set the style for level 1(H1) items in the table of contents. HtmlToPdfTocStyle tocstyleH1 = new HtmlToPdfTocStyle(); tocstyleH1.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Regular); tocstyleH1.BackgroundColor = new PdfSolidBrush(new PdfColor(Color.FromArgb(68, 114, 196))); tocstyleH1.ForeColor = PdfBrushes.White; tocstyleH1.Padding = new PdfPaddings(5, 5, 3, 3); //Apply this style to level 1 (H1) headings of the TOC. blinkConverterSettings.Toc.SetItemStyle(1, tocstyleH1); //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert HTML File to PDF. PdfDocument document = htmlConverter.Convert("https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/blink"); FileStream fileStream = new FileStream("toc_creation.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
You can use bookmarks to navigate to various headings within a PDF document. With the help of the HTML-to-PDF converter, you can easily create a bookmark hierarchy.
For that, you just need to enable the EnableBookmarks property in the converter settings. Then, the bookmarks will be automatically created from the <h> tags. It provides support from <h1> to <h6> header levels.
Refer to the following code example to automatically create bookmarks in a PDF document.
//Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); //Enable automatic bookmark creation. blinkConverterSettings.EnableBookmarks = true; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert HTML File to PDF. PdfDocument document = htmlConverter.Convert("https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/blink"); FileStream fileStream = new FileStream("bookmark_creation.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
By executing this example, you will get a PDF document like in the following image.
With the password-protection support in our HTML-to-PDF converter, you can keep sensitive information more secure.
Note: For more information, refer to Working with Security documentation.
Refer to the following code example to set a password to a converted PDF document.
//Initialize the HTML to PDF converter with the Blink rendering engine. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); blinkConverterSettings.ViewPortSize = new Syncfusion.Drawing.Size(800, 0); //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert particular div in a web page to PDF. PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com/"); //Set password to the PDF document. document.Security.UserPassword = "syncfusion"; document.Security.Permissions = PdfPermissionsFlags.CopyContent | PdfPermissionsFlags.Print; FileStream fileStream = new FileStream("Web_to_PDF_password.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); //Save and close the PDF document. document.Save(fileStream); document.Close(true);
You can download all of these samples from the HTML-to-PDF document conversion in the C# demo.
Thanks for reading! In this blog post, we have learned the various ways to convert HTML content to a PDF document in C# using our Syncfusion HTML-to-PDF converter library. So, try out these methods and leave your feedback in the comments section of this blog post!
For existing customers, the new version of Essential Studio® is available for download from the License and Downloads page. If you are not yet a Syncfusion customer, you can try our 30-day free trial to check out our available features.
You can also contact us through our support forum, support portal, or feedback portal. We are happy to assist you!