PDF Vision .Net

.NET assembly to convert HTML to PDF and Images (JPEG, TIFF, PNG, Bitmap) to PDF.

using SautinSoft.PdfVision;

class Program
{
    static void Main(string[] args)
    {
        PdfVision v = new PdfVision();
        HtmlToPdfOptions opt = new HtmlToPdfOptions();

        if (!ChromiumEngine.IsExist(opt.ChromiumBaseDirectory))
        {
            ChromiumEngine.Unpack(opt.ChromiumBaseDirectory);
        }
            v.ConvertHtmlToPdf(″https://www.example.com″, ″example.pdf″, opt);

        Console.WriteLine("HTML successfully converted to PDF.");
    }
}
Convert HTML file to PDF file

The PDF Vision .Net product includes a sample code for converting an HTML document to a PDF file. This example demonstrates how to use the library to programmatically convert an HTML page into a PDF document.

The product supports various platforms, including Windows, Linux, macOS, and Docker, and is compatible with .NET 8, 7, 6, 5, Standard 2, Core 2x, and 3x, as well as Framework 4.6.2+.