Skip to main content
Participating Frequently
October 21, 2024
Question

Template automatic page number

  • October 21, 2024
  • 1 reply
  • 559 views

I want to create a template on which pages can be added. The first part of the document is one language and the second part of the document is another language. Therefore, the document has two tamplate pages, which are generated by a button (each page goes to the end of its language, this 2 pages are hidden). A problem has arisen with the page numers. I want the pages to be numbered automatically when pages are added or deleted. I need a procedure and implementation of this in my document, as I have no more ideas.

This topic has been closed for replies.

1 reply

PDF Automation Station
Community Expert
Community Expert
October 21, 2024

This article explains how to number pages when spawning and deleting template pages.

3785Author
Participating Frequently
October 22, 2024

I myself think that the problem arises because I combine two documents, but I cannot find in the code where this is written twice and therefore the page number is written incorrectly.. Please try to use button New page too.

PDF Automation Station
Community Expert
Community Expert
October 22, 2024

The New Page button does not contain a script.  When you see a comma separated value in the page number field, that means you have duplicate fields.  The page property of a field returns an array of page numbers if there are more than one of those fields.