Set and reset page number (W)

Modified on Mon, 5 Oct at 1:53 PM

BaseExtensions can be used to find the page number at active page and then set a "start numbering at". Here, the user will be prompted with a box where it can be defined which number the active page should start at. Furthermore, we are able to reset the manual override, and thus resetting the page number to continue from previous count.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\72_W_setResetPageNumber.xml

CMD

<Cmd case="BaseExtensions:pagenumber-startat-continue"/>

Parameter

continue

If the command should enable the user to set a "start numbering at", define this parameter to be false. This will insert a section break and then prompt a box, where the user must specify which number to restart page number at. If the command should work as a reset button, define this parameter to be true. This will reset the page number to continue from previous count.

continue-on-next

Define this to be true if command should set page numbering for the following page to continue current count. This is especially well-used in conjunction with insertion of landscape pages and other commands that will insert section breaks.

save-to-doc-prop

Optional. Defining this to be true will write three different custom properties to the document which can be used for calculating alternative page numbering. These custom properties are RestartAt, TotalPages and RestartAtActivePageNumber.

doc-prop-name

Optional. This is the document property name that will be created or updated during the logic run. If not defined "RestartAt" will be spawned as default.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article