Hello
Thanks for your request. Please see the following code:
// Open HTML
Document doc = new Document(@"in.html");
// Save output document
doc.Save(@"out.pdf");
or you can try using this code to insert HTML and save as PDF
// Create an empty Document
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertHtml(
@"<html>
<body>
<img src='http://www.aspose.com/Images/aspose-logo.jpg' />
</body>
</html>");
// Save output document
doc.Save(@"out.pdf");
Hope this helps.
Best regards,
Andrey Noskov
Developer/Technical Support
Aspose Auckland Team