when converting an HTML document to PDF on my local machine it looks fine. When deployed to another server the formatting of the entire document is larger--fonts, divs, spacing, etc. Is this a known issue or is there a work around? Here is the code...
PdfHtmlLayoutFormat htmlLayoutFormat = new PdfHtmlLayoutFormat();
htmlLayoutFormat.IsWaiting = false;
htmlLayoutFormat.LoadHtmlTimeout = 5000;
PdfPageSettings setting = new PdfPageSettings();
setting.Size = PdfPageSize.A4;
setting.Margins = new PdfMargins(10f, 10f, 10f, 0f);
PdfDocument pdfPage = new PdfDocument(PdfConformanceLevel.Pdf_A1A);
.
.
.
Thread thread = new Thread(() =>
{ pdfPage.LoadFromHTML(html.ToString(), false, setting, htmlLayoutFormat); });
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();