So, I have an HTML document and when I use the following code:
PdfGenerateConfig config = new PdfGenerateConfig(); config.PageOrientation = PdfSharp.PageOrientation.Portrait; config.PageSize = PdfSharp.PageSize.A4; config.SetMargins(20);
PdfDocument pdfDoc = PdfGenerator.GeneratePdf(htmlText, config); pdfDoc.Save(destination);
The PDF doesn't scale down to fit the page. There is HTML content that is cut off the right-hand margin, so width doesn't appear to scale correctly when saving.
I am using the latest PDFSharp pre-release and HTMLRenderer Pre-Release code.
Thank you Paul
|