Postpagination scripts

Hi,

I tried to implement the AlphaPagination script from https://learn.objectiflune.com/discourse/t/adding-page-numbers-to-pdf/1033/1, adapted for my case.

If I use a single (print-)section in my design, it works as supposed.

The problem is, I’m using a lot of cloned sections to be able to apply different media, plex and orientation settings per page. The numbering e.g. index ( “$(‘.mypagecount’).each(function(index)” ) resets on the beginning of every section inside my document. It’s kind of logical, because the script is attached to a section, but this renders it unusable…

Is there a way to use similar functionality for a whole document and not only per section?

I cannot use the Output-Presets because the location of the output is different for the first and following pages and for landscape and portrait orientations…

Best regards

-ivan

Maybe you can use output preset.

In the Output Preset, tick ‘Add additional content’, then, on Additional Content page in the wizard add three additional texts.

For first page, set the condition to:

page.nr == 1

For portrait pages, set the condition to:

(page.nr > 1) &&  (page.portrait)

For landscape pages, set the condition to:

(page.nr > 1) &&  (page.landscape)

Hi johndoe,

Thanks for the answer.

I cannot use Output Presets for this because of many reasons (fixed positions of elements in the preset, mixed plex in the layout, hundreds of layouts with different positions and so on)…

best regards

-ivan