These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Printing current page in Acrobat 9

Patredu
Registered: Jul 17 2009
Posts: 3

I want to print the cirrent page of a pdf document.
This script in Acrobat 9 doesn't print the page?
this.print(false, this.pageNum, this.pageNum);

This other
this.print(true, this.pageNum, this.pageNum);

shows the right print user interface but the full document is printed !

Have you any solution ?

Thx

My Product Information:
Acrobat Pro 9.0, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2399
The first line should have done it. What happens when you run it?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

suewhitehead
Registered: Jun 3 2008
Posts: 232
This is the way I have done the same thing in LiveCycle Designer:
You need to identify an object
//on the page first, then you can get the page number the object is on.
var oRA = xfa.form.resolveNode("$..RATitle");
var nPage = xfa.layout.absPage(oRA);
xfa.host.currentPage = nPage;
xfa.host.print(1, nPage.toString(), (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0)//set page to string with toString

It would not be the same if your form is made as an Acrobat Form, though.
Patredu
Registered: Jul 17 2009
Posts: 3
Now it 's right with :
this.print(false, this.pageNum, this.pageNum);
bSilent: true

bSilent seems to be necessary !

Thx