using Aspose.Pdf; using System; namespace AsposeTests { class Program { static void Main(string[] args) { // Initialize license License lic = new License(); lic.SetLicense("Aspose.Total.lic"); HtmlLoadOptions options = new HtmlLoadOptions(); Document pdfDocument = new Document("test.html", options); pdfDocument.Save("html_test.PDF"); Console.WriteLine("HTML page converted to PDF successfully"); } } }