Browse Source

Replaced PageEnd with PageStart in PageNumberWithinSection

Simone Anile 3 years ago
parent
commit
24bbd06dff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      QuestPDF/Fluent/TextExtensions.cs

+ 1 - 1
QuestPDF/Fluent/TextExtensions.cs

@@ -174,7 +174,7 @@ namespace QuestPDF.Fluent
         
         
         public TextPageNumberDescriptor PageNumberWithinSection(string locationName)
         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)
         public TextPageNumberDescriptor TotalPagesWithinSection(string locationName)