1 parent 6942135 commit ab1a445Copy full SHA for ab1a445
1 file changed
Source/HtmlRenderer.PdfSharp/PdfGenerator.cs
@@ -173,6 +173,7 @@ public static void AddPdfPages(PdfDocument document, string html, PdfGenerateCon
173
var page = document.AddPage();
174
page.Height = XUnit.FromPoint(orgPageSize.Height);
175
page.Width = XUnit.FromPoint(orgPageSize.Width);
176
+ page.Orientation = config.PageOrientation;
177
178
using (var g = XGraphics.FromPdfPage(page))
179
{
0 commit comments