Skip to content

Commit ab1a445

Browse files
committed
Fix PDF page orientation
1 parent 6942135 commit ab1a445

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
@@ -173,6 +173,7 @@ public static void AddPdfPages(PdfDocument document, string html, PdfGenerateCon
173173
var page = document.AddPage();
174174
page.Height = XUnit.FromPoint(orgPageSize.Height);
175175
page.Width = XUnit.FromPoint(orgPageSize.Width);
176+
page.Orientation = config.PageOrientation;
176177

177178
using (var g = XGraphics.FromPdfPage(page))
178179
{

0 commit comments

Comments
 (0)