PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Html not scalling when saving as PDF
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4080
Page 1 of 1

Author:  brunp [ Wed Jan 08, 2020 8:48 pm ]
Post subject:  Html not scalling when saving as PDF

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

Author:  TH-Soft [ Wed Jan 08, 2020 9:04 pm ]
Post subject:  Re: Html not scalling when saving as PDF

This is not the HTML Renderer forum, so do not be disappointed if no-one will answer.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/