Counter to start with 1 on each pdf

We are printing a single section to PDF and splitting the output based on a record field. There is a counter in the top-left corner of each page, which starts at number 1 for the first PDF (PDF-A). However, the second PDF (PDF-B) continues counting from the last record of the previous PDF instead of resetting to 1.

How can we ensure that each split PDF starts with the number 1?

Note: counter is generated by an extra datamapper extraction field (record.index)

Hello @RolfVermolen,

I suppose that you are grouping the PDF output into jobs, job segments or document sets by using a Job Preset (*.OL-jobpreset) and that you are splitting the PDF output on jobs, job segments or document sets by using an Output Preset (*.OL-outputpreset)? If yes, then I assume that it is probably better to add the page number / count by the Additional Text option. To achieve this you can insert the print output variable ${page.sequence.set} in the Text textarea of the Additional Text window, as shown in the image below.

Variable Description
${page.sequence.set} Page number within the document set.

For more information about the available print output variables, see
Variables available in the Output - OL Connect 2024.1 Help

1 Like

Thanks, Marten! This works perfectly.

1 Like