i need to add some page numbers with a prefix to a bunch of documents, I am following:
http://www.planetpdf.com/enterprise/article.asp?ContentID=adding_page_number_to_pdfs&gid=6048
which does it with some javascript attached to a button but Its not working for me. I click the button and nothing visible happens. heres my code:
var r = [612-72, 792 - 72, 612, 792]; //inch from upper right for (var i = 0; i < numPages; i++) { var f = this.addField(string("page"+i+1),"text",i,r); f.textSize = 20; f.textColor = color.black; f.fillColor = color.red; f.textFont = font.helvB; f.borderStyle = border.s; f.strokeColor = color.transparent; f.value = String(i+1); }
does anything look wrong? I inserted some alerts and the script is indeed running.
have a nice day !