Hi John,
Thanks for your interest in Aspose products. You can use Aspose.Words to convert HTML to PDF. For example you can use code like the following:
string url = "http://localhost/mysite/default.html";
//Prepare the web page we will be asking for
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "GET";
request.ContentType = "application/msword";
request.UserAgent = "Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0";
//Execute the request
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
//We will read data via the response stream
Stream resStream = response.GetResponseStream();
//Write content into the MemoryStream
BinaryReader resReader = new BinaryReader(resStream);
MemoryStream docStream = new MemoryStream(resReader.ReadBytes((int)response.ContentLength));
//Create document
Aspose.Words.Document doc = new Aspose.Words.Document(docStream);
//Save document
doc.Save(@"Test001\out.pdf");
Hope this helps.
Best regards,
Alexey Noskov
Developer/Technical Support
Aspose Auckland Team