Hi Amy,
Thanks for your support.
I will try to use it and let you know the result.
Thanks,
Lee K
string inputFile = "C:\\input.html";
string outputFile = "C:\\output.pdf";
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.PluginPath = Context.Server.MapPath("/_layouts/15/Wiki/plugins");
HtmlConverter.Convert(inputFile, outputFile,
//enable javascript
true,
//load timeout
100 * 1000,
//page size
new SizeF(612, 792),
//page margins
new PdfMargins(0, 0));
byte[] data = File.ReadAllBytes(outputFile);
Page.Response.ContentType = "application/pdf";
Page.Response.OutputStream.Write(data, 0, data.Length);
Page.Response.Flush();
Page.Response.Close();
Pdfdocument.SaveToHttpResponse(pdfFilename, HttpContext.Current.Response, HttpReadType.Save);