Place a text field on master page and place the below script on the event of layout ready. This will work for exact 10 pages (as per ur requirement), we can change for any pages, but need to know the page count before.
//Page 1
if
(xfa.layout.page(this) == 1){this.rawValue
= xfa.layout.page(this) + " of " + 1;
}
//Page 2 - 6
if
((xfa.layout.page(this) > 1) && (xfa.layout.page(this) <= 6)) {this.rawValue
= (xfa.layout.page(this)-1) + " of " + (xfa.layout.pageCount()-5);
}
//Page 7
if
(xfa.layout.page(this) == 7){this.rawValue
= "";
}
//Page 8-10
if
(xfa.layout.page(this) > 7) {this.rawValue
= (xfa.layout.page(this)-7) + " of " + (xfa.layout.pageCount()-7);
}
Hope this will help.
Raghu.