So I am stumped. I am by no means an expert but know enough to be dangerous.
I have this code set for a Button to print pages 25 and 26 of the document, shrink to fit, print just the document with no comments, auto rotate and centre.
var pp = this.getPrintParams();
var fv = pp.constants.flagValues;
pp.flags = fv.setPageSize=false;//Sets the Auto-Rotate and Center Flag
pp.interactive = pp.constants.interactionLevel.full;
pp.pageHandling = 2;
pp.printContent = pp.constants.printContents.doc;
pp.firstPage = 26;
pp.lastPage = 27;
this.print(pp);
All of that works except that the preview in the print dialogue box shows that all pages will print and indeed that happens. The problem is that the page range of 25-26 is selected. If I change a setting manually at this point then the preview show correctly and things work. So basically all the print options are selected properly when the button is pressed but the whole document prints instead of the page range specified. Any ideas on how to get the print command to print what is selected. Using Acrobat 9.4.5