You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate PDF /PageLabel for page numbering defined as a function #8387
I found when the page.numbering accepts numbering pattern (string), the generated PDF contains an object with /PageLabel.
However, when the page.numbering accepts a function, it contains no object with /PageLabel, which means the PDF viewer will not display the page label.
I think the returned value of those functions should be included as /PageLabel.
Use Case
I just want to set the numbering of first page as cover. It doesn't contain the char a so I have to use the function (..__)=>"(cover)". However, the PDF viewer doesn't display cover for the first page as I expected.
changed the title [-]page numbering defined as `function` doesn't generate PageLabel[/-][+]Page numbering defined as a function doesn't generate a PDF `/PageLabel`[/+]on May 29, 2026
changed the title [-]Page numbering defined as a function doesn't generate a PDF `/PageLabel`[/-][+]Generate PDF `/PageLabel` for page numbering defined as a function[/+]on May 29, 2026
Activity
[-]page numbering defined as `function` doesn't generate PageLabel[/-][+]Page numbering defined as a function doesn't generate a PDF `/PageLabel`[/+][-]Page numbering defined as a function doesn't generate a PDF `/PageLabel`[/-][+]Generate PDF `/PageLabel` for page numbering defined as a function[/+]laurmaedje commentedon May 29, 2026
The page labels are sort of best effort at the moment.