From 24bbd06dff81589b805d2a9b5eec55546582b5c8 Mon Sep 17 00:00:00 2001 From: Simone Anile <23080613+simusr2@users.noreply.github.com> Date: Fri, 29 Apr 2022 15:19:58 +0200 Subject: [PATCH] Replaced PageEnd with PageStart in PageNumberWithinSection --- QuestPDF/Fluent/TextExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuestPDF/Fluent/TextExtensions.cs b/QuestPDF/Fluent/TextExtensions.cs index 9b7de06..b808eb5 100644 --- a/QuestPDF/Fluent/TextExtensions.cs +++ b/QuestPDF/Fluent/TextExtensions.cs @@ -174,7 +174,7 @@ namespace QuestPDF.Fluent public TextPageNumberDescriptor PageNumberWithinSection(string locationName) { - return PageNumber(x => x.CurrentPage + 1 - x.GetLocation(locationName)?.PageEnd); + return PageNumber(x => x.CurrentPage + 1 - x.GetLocation(locationName)?.PageStart); } public TextPageNumberDescriptor TotalPagesWithinSection(string locationName)