Class HtmlConverter
- Namespace
- BitMiracle.Docotic.Pdf.HtmlToPdf
- Assembly
- BitMiracle.Docotic.Pdf.HtmlToPdf.dll
The HTML converter. The main purpose of the converter is to create PDFs from HTML files or URLs.
public sealed class HtmlConverter : IAsyncDisposable, IDisposable
- Inheritance
-
HtmlConverter
- Implements
- Inherited Members
Remarks
Read the Convert HTML to PDF in C# and VB.NET article to see how you can convert HTML to PDF using the API.
Linux and environments like Azure Functions or AWS Lambda may require additional setup. Check out the Convert HTML to PDF in Azure Functions and Azure App Services article to find out what may be required.
Check out the other articles and code samples on the HTML to PDF features page.
Methods
- CreateAsync(HtmlEngineOptions?)
Creates a new instance of HtmlConverter as an asynchronous operation.
- CreatePdfAsync(Stream, HtmlConversionOptions?)
Creates a new PdfDocument with the contents of the specified HTML stream as an asynchronous operation.
- CreatePdfAsync(string, HtmlConversionOptions?)
Creates a new PdfDocument with the contents of the specified HTML file as an asynchronous operation.
- CreatePdfAsync(Uri, HtmlConversionOptions?)
Creates a new PdfDocument with the contents at the specified URL as an asynchronous operation.
- CreatePdfFromStringAsync(string, HtmlConversionOptions?)
Creates a new PdfDocument with the specified HTML code as an asynchronous operation.
- Dispose()
Disposes internal resources of this converter.
- DisposeAsync()
Disposes internal resources of this converter as an asynchronous operation.