Terkelsen wrote: ↑Wed Mar 29, 2023 3:11 pm
If I create a simple two page document in InDesign and export that to at PDF having page 1 and 2, the action will not do anything. If I create a similar document in InDesign but with the pages 9 and 10, the action works just fine (labels become 09 and 10).
...
In other words it seems like a PDF only has page label information if a section has been defined?
A PDF only has page label information if the producer of the PDF adds page label information. What Indesign is doing is to apply the following (understandable) logic: if the document contains consecutive pages from 1 to some number there is no need to add page labels to the PDF because the page labels would be the same as the index numbers. However, if you create an Indesign document starting with page 9 (page i, page A-1, ...) then the logic is: the page numbers are different from the index, let us add those page numbers as labels in the PDF. So, it is not necessarily related to the use of a section, it is enough that the page "names" are different from their indices.
Other producers (Quark, Word, Canva, ...) may handle this differently (I have not checked). Do they support the use of page labels natively? If not, they will probably not add page labels, although theoretically they could. If so, it should be considered a bug if they did not define page labels.
By the way, you have not reacted to my question why you want to use the page labels because using the index in the output name will give you what you want if I understood your initial problem statement correctly.