Dear Support Team,
We have a html chart that need to convert to PDF,
every thing is OK if we set HtmlToPdf.Options.PageSize 12.34 x6.44 inch.
but when we change the PageSize to 12.34 x 5.44 inch. (only decrease height by 1 inch)
the html chart become very small on PDF and not fit to page anymore.
so we thing there maybe some kind bug in scale.
you can check our sample file and screen shot on this link
https://www.dropbox.com/sh/pbrgwe4j9xw1vtp/UMfHpqYCxk#/this is our code
static void TestConvertHtml()
{
float w = 12.34F;
float h = 5.44F; //if we change 5.44 to 6.44 than every thing is OK
HtmlToPdf.Options.PageSize = new System.Drawing.SizeF(w, h);
HtmlToPdf.Options.OutputArea = new System.Drawing.RectangleF(0F, 0F, w, h);
HtmlToPdf.Options.AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit;
HtmlToPdf.Options.AutoFitY = HtmlToPdfAutoFitMode.ScaleToFit;
HtmlToPdf.Options.MinLoadWaitTime = 1000;
string htmlFile = "ScaleError.html";
//using ConvertHtml to get PDF
PdfDocument pdfDoc = new PdfDocument();
string text = System.IO.File.ReadAllText(htmlFile);
HtmlToPdf.ConvertHtml(text, pdfDoc);
pdfDoc.Save("scale_error.pdf");
}
Best Regards,
Chien Chih