Here is the code you are looking for.
1.
var f = this.getField("mybutton");
this.print(false, f.page, f.page);
2.
var f = this.getField("mybutton");
this.print(false, f.page+1, f.page+1);
3.
var f = this.getField("mybutton");
this.print(false, f.page+2, f.page+2);
Basically the "page" property on a field object returns the 0 indexed page
number of where the field is on and you can pass this value to the "print"
method.
Thanks,
Yang
Hi Yang,
--
You received this message because you are subscribed to the Google Groups
"CenoPDF Support Group" group.
To post to this group, send email to cenos...@googlegroups.com.
To unsubscribe from this group, send email to
cenosupport...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cenosupport?hl=en.
My test showed it worked fine. Can you tell me why you think it did not
work? Note that if you have all those kind of buttons in the same document,
they must have different names; otherwise they won't work.