T
Tiziano Eberini
Dear all,
we need to number the pages of a PDF document by using a javascript.
This is what we tried:
" this.numPage = 1;
var np = this.getField("n");
var i = 1;
for (i = 1;i <= this.numPages;i++)
{
np.value = util.printf(this.numPage);
this.numPage++;
np = this.getField("n");
} "
where "n" is the name of the numeric field we want to use to display the
page numbers. This script does not work properly and we would be
grateful if you could give us some help.
How does "getField" works? How many and which parameters does it
require?
Thank you in advance and best regards,
Tiziano
we need to number the pages of a PDF document by using a javascript.
This is what we tried:
" this.numPage = 1;
var np = this.getField("n");
var i = 1;
for (i = 1;i <= this.numPages;i++)
{
np.value = util.printf(this.numPage);
this.numPage++;
np = this.getField("n");
} "
where "n" is the name of the numeric field we want to use to display the
page numbers. This script does not work properly and we would be
grateful if you could give us some help.
How does "getField" works? How many and which parameters does it
require?
Thank you in advance and best regards,
Tiziano