The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com
__________________________________________________________________

Hi Dave,
I had a situation yesterday where I could have used your script.  Unfortunately I know
nothing about JavaScript other than what it is and some of what it can do.
Would you or someone else please tell me HOW to implement this neat script.
I have looked in the help files but this is one area where the help was no help for me.

Many thanks
Pia
_________________________
Designer Mice
Newfoundland CANADA
http://www.netfx.ca/designermice/dmice.html

"Women and cats will do as they please, and men and dogs should relax and get used to 
the
idea."  Robert A. Heinlein

-----Original Message-----
Subject: Re: [PDF] Printable page numbering

Hi Mark, try this javascript. It will put a field on the bottom centre of
the page with the page number in it.

Cheers Dave.

================================================

var aMedia = this.getPageBox("Media");
var width = (aMedia[2] - aMedia[0]);
var height = (aMedia[1] - aMedia[3]);

var x = width/2-20;
var x2 = width/2+20;

for (var p = 0; p < this.numPages; p++) {


var r = this.addField(p, "text", p, [x,20,x2,40]);

r.delay = true;
r.strokeColor = color.white;
r.fillColor = color.white;
r.readonly = true;
r.delay = false;
this.getField(p).value = p+1;

}

======================================================



To change your subscription:
http://www.pdfzone.com/discussions/lists-pdf.html

Reply via email to