Hi,
I'm using the doc.LoadFromHTML to convert a html page to PDF. The html is a basic table with a stylesheet, pretty basic. It is ~200 pages and appears to complete successfully but when reviewing the converted PDF, it is cutoff after 32 of 200 pages. I have a licensed version of the product.
sample source below. Any suggestions would be helpful, thanks
PdfDocument doc = new PdfDocument();
PdfPageSettings setting = new PdfPageSettings();
setting.Size = PdfPageSize.A4;
setting.Margins = new Spire.Pdf.Graphics.PdfMargins(20);
PdfHtmlLayoutFormat htmlLayoutFormat = new PdfHtmlLayoutFormat();
htmlLayoutFormat.Layout = PdfLayoutType.Paginate;
htmlLayoutFormat.IsWaiting = false;
String url = "file://testtable.htm";
Thread thread = new Thread(() =>
{ doc.LoadFromHTML(url, true,true, true, setting, htmlLayoutFormat); });
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
doc.SaveToFile(@"testtable.pdf");
doc.Close();