cancel
Showing results for 
Search instead for 
Did you mean: 

Page numbering in master pages

Former Member
0 Kudos

Hi All,

I have an adobe form in which i have to create 2 master pages.

1st master page contains the content for the body.

2nd master page contains special conditions and Annexure.

Example scenario: First master page contains 33 pages or could increase to more number of pages depending upon the input conditions. Second master page always contains 15 pages. I need to have page numbering in such a way, that when i execute my form, the output will contain pages from both the master pages in one rendered PDF and the numbering should be 1 of 33 ( or more depending upon the pages included in first master page) and then when the next master page starts the numbering should restart as 1 of 15.

But in my case when i see the out put, (lets say first master page has 33 pages and second has 15 pages, so in total 48 pages), the page numbering comes as 1 of 48 and continues till end. Can i have the numbering in this way

1 of 33 and then

1 of 15  in that single document.

Any help would be greatly appreciated.

Regards,

Nitin.

Accepted Solutions (0)

Answers (1)

Answers (1)

sandeep_katoch
Contributor
0 Kudos

Hi Nitin,

In next mater page you will have to again instantiate the page sequence.

you can use this script in ready event

xfa.layout.page(this) = 1.

The corresponding content pages will automatically follow this series.

Hope this helps

Former Member
0 Kudos

Hi Sandeep,

Thanks for reply, but this scenario i already have tried, its making all the body pages related to second master page as Page 1 only. Not incrementing the page number.

Any other suggestions????

Rgds,

Nitin.

sandeep_katoch
Contributor
0 Kudos

Hi Nitin,

Then you have to increment in all the subsequent pages of second master page.

xfa.layout.page(this) = xfa.layout.page(this) + 1. Like this

This is not the exact syntax but the way will be similar

Hope this helps.

Rgds,

Sandeep Katoch