MHT to PDF Converter – C# .NET API Installation
Aspose.HTML for .NET API supports creating, editing, or manipulating HTML, MHTML, and other supported file formats. You can access the API by downloading its DLL files from the Downloads section or using the following NuGet installation command:
PM> Install-Package Aspose.Html
Convert MHT or MHTML to PDF in C#
MHT files are usually saved with a .mhtml file extension. You can convert an MHT or MHTML file to a PDF file with the following steps:
- Create an object of the PdfSaveOptions class.
- Convert the MHT or MHTML to PDF with ConvertMHTML method.
The code snippet below demonstrates how to convert an MHT or MHTML file to PDF programmatically in C#:
Explore Aspose.HTML for .NET API
You can learn several features to work with web pages by exploring the documentation section. It covers different features including file conversions, web crawling, etc.
Get Free License
You may try working with the API in its full capacity by getting a free temporary license.
In this article, you have learned how to convert an MHT or MHTML file to PDF format in C# or .NET framework-based applications. In case of any questions, please feel free to write to us at the forum.