By default, Editor won't show logical page numbers — even if a user has just finished manually adjusting the logical numbering of pages!TrackerSupp-Daniel wrote: ↑Wed Aug 24, 2022 4:23 pm Yes, by defualt, logical page numbering is disabled in our application. To enable display of these values, open the preferences (Ctrl+K) and enable this option under the "Page display" category:
image.png
As noted, the user has the ability to turn on this feature, meaning that the logical numbering is shown in the page Thumbnails pane, and also in the page-number display/field at the bottom of the window.
But how can I apply the logical page numbering in a header or footer? The answer is in the Product Manual for Editor: use %[Page:L] instead of just the default %[Page].
" 'L' specifies page labels as the page numbering format in cases where page labels have been specified. "
So far, so good.
But let's say I have scans from a book, and I've scanned the pages two at a time, creating a PDF file with landscape logical-pages that each represent two (facing) pages of the book.
How could I number these logically?
The most basic option would be for me to label each logical-page with a single logical-page-number, each incrementing by two.
For instance, if the first scan is of book-pages 6 & 7, I might label it as "7", next a scan of 8 & 9, labelled as "9", and so on through to the last scan of 26 & 27, labelled as "27".
However, I don't know how to create logical-page-numbers (a.k.a. labels) that increment by 2, unless I manually create a separate page range for every single PDF-page, which is extremely laborious.
(Perhaps it's possible to create a JavaScript procedure to automate this??)
Another possibility would be to use some advanced macro features to arithmetically alter the output of %[Page:L] or %[Page]. Hypothetically, something like %[2 * Page + 5]. Except that such functionality doesn't seem to exist as yet (certainly not with that syntax!).
I am speculating that it might be difficult to add that functionality to the existing macros, but maybe two new macros could be added, called %[Add] and %[Multiply]. Each would take two parameters. So the above hypothetical command would be amended to
%[Add:%[Multiply:2;%[Page]];5]
Note that subtraction could then be accomplished by inserting a hyphen (representing a negative), and division by 2 would be the same as multiplication by 0.5, and so on.
—DIV