Aspose.HTML Converter for .NET is a powerful plug-in designed to facilitate seamless conversion of HTML and XHTML files into various formats, including PDF, images, and XPS.
Converter.ConvertHTML
methodPdfSaveOptions
classGet the assembly files from the downloads or fetch the package from NuGet to add Aspose.HTML
directly in your workspace.
Aspose.HTML Converter for .NET supports various advanced options such as watermarking, protection, and digital signatures in PDF generation. Additionally, you can customize the rendering process to enhance the functionality of your application.
Converting HTML files to JPG images using Aspose.HTML for .NET involves a systematic process executed through the ConvertHTML()
method. Firstly, use the HTMLDocument
class to load the HTML content from a specified file. Create a new ImageSaveOptions
object, specify the desired output format as JPG, BMP, GIF, TIFF, or PNG. Finally, call the ConvertHTML()
method of the Converter
class, passing the ImageSaveOptions
object.
Aspose.HTML Converter for .NET is compatible with Microsoft Windows or any OS supporting .NET Framework or .NET Core. It also supports integration with VBScript, Delphi, and C++ via COM Interop. A development environment like Microsoft Visual Studio is recommended, and the Aspose.HTML for .NET DLL should be referenced in the project.
Aspose.HTML Converter for .NET supports both HTML and XHTML as input formats. You can pass the HTML/XHTML through a file, stream, or plain text for the conversion process.