Fixed formatting page numbers
This commit is contained in:
@@ -121,7 +121,7 @@ namespace QuestPDF.Elements.Text
|
||||
{
|
||||
foreach (var textBlockItem in textBlockItems)
|
||||
{
|
||||
if (textBlockItem is TextBlockSpan textBlockSpan)
|
||||
if (textBlockItem is TextBlockSpan textBlockSpan and not TextBlockPageNumber)
|
||||
{
|
||||
// perform font-fallback operation only when any fallback is available
|
||||
if (textBlockSpan.Style.Fallback == null)
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace QuestPDF.Fluent
|
||||
internal TextPageNumberDescriptor(Action<TextStyle> assignTextStyle, Action<PageNumberFormatter> assignFormatFunction) : base(assignTextStyle)
|
||||
{
|
||||
AssignFormatFunction = assignFormatFunction;
|
||||
AssignFormatFunction(x => x?.ToString());
|
||||
}
|
||||
|
||||
public TextPageNumberDescriptor Format(PageNumberFormatter formatter)
|
||||
|
||||
Reference in New Issue
Block a user