Visitar URL original
Fix PDF page orientation · ArthurHub/HTML-Renderer@8c175d8 · GitHub
Skip to content

Commit 8c175d8

Browse files
committed
Fix PDF page orientation
1 parent 9b555ee commit 8c175d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Source/HtmlRenderer.PdfSharp/PdfGenerator.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public static void AddPdfPages(PdfDocument document, string html, PdfGenerateCon
197197
var page = document.AddPage();
198198
page.Height = XUnit.FromPoint(orgPageSize.Height);
199199
page.Width = XUnit.FromPoint(orgPageSize.Width);
200+
page.Orientation = config.PageOrientation;
200201

201202
using (var g = XGraphics.FromPdfPage(page))
202203
{

0 commit comments

Comments
 (0)