Print pages to PDF
I have a pdf document with 30 pages. I would like to print pages 2 and 3 to the Adobe PDF printer using javascript. I tried the following javascript code in a button on page 2 but it does not work:
var pp = this.getPrintParams();
pp.printerName = "Adobe PDF";
pp.pageHandling = pp.constants.handling.fit;
this.print(pp);
pp.this.print(false, this.pageNum,(this.pageNum+1));
I would like the two pages to print without bringing up the print menu box. Any help would be appreciated. Thanks.
