I am evaluating your Spire.PDF package for HTML to PDF conversion to replace a legacy component and am running into difficulty. The HTML to PDF conversion works properly when running from within a Visual Studio solution but it fails after deploying the component to Windows 2008 Server, 32-Bit standard edition. The component is using the .Net 2.0 framework and I have selected the corresponding Spire.PDF dlls. I have attached a copy of the HTML file as well as the PDF file that is generated. There is also another file generated with the same name but no suffix that is empty. I can find no diagnostics being generated. Any assistance would be appreciated.
Regards,
Bill Doviak
The code snippet in the calling component:
using (StreamReader sr = new StreamReader(fullPathFilename + ".html"))
{
string html = sr.ReadToEnd();
PdfDocument pdf = new PdfDocument();
PdfHtmlLayoutFormat layoutFormat = new PdfHtmlLayoutFormat();
layoutFormat.IsWaiting = false;
PdfPageSettings pageSetting = new PdfPageSettings();
pageSetting.Size = PdfPageSize.Letter;
Thread thread = new Thread(()=>
pdf.LoadFromHTML(html, false, pageSetting, layoutFormat));
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
pdf.SaveToFile(fullPathFilename + ".pdf");
}