Running Total Page Count of a Job

I have a job with multiple document generated under 1 output file where each document have dynamic page count depending on its data.
I would like to add up the total page as the job is running as such:
Doc1 Page 1 Total 1
Doc1 Page 2 Total 2
Doc2 Page 1 Total 3
Doc3 Page 1 Total 4

Is there any script I can write in designer to fulfill this requirement?

Thanks

I would do it as an additional content in your output Preset as so:

  1. Create or modify an actual Output Preset by checking the box Add additional content.
  2. Click next until you reach the dialog Additional content.
  3. There, add a Text content.
  4. Setup the colour, and positioning of where you want your numbering to show.
  5. Add this code to the Text Field
    Doc${document.sequence.job} Page ${page.nr} Total ${page.sequence.job}

That will give you your:
Doc 1 Page 1 Total 1
Doc 1 Page 2 Total 2
Doc 2 Page 1 Total 3

Note: you could even make it more explicit by using this code:
Doc${document.sequence.job} Page ${page.nr} of ${document.count.pages} Total ${page.sequence.job}

That will give you:
Doc 1 Page 1 of 2 Total 1
Doc 1 Page 2 of 2 Total 2
Doc 2 Page 1 of 1 Total 3

1 Like