PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Aug 11, 2020 1:13 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jan 08, 2020 8:48 pm 
Offline

Joined: Wed Jan 08, 2020 8:45 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 08, 2020 9:04 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 563
Location: CCAA
This is not the HTML Renderer forum, so do not be disappointed if no-one will answer.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group