The way you use the printParams object is that you first must retrieve the object by using the doc.getPrintParams() method that returns the object.
var objPrintParams = this.getPrintParams();
interactive: Determines the level of interaction between the user and the print job. Set through the constants object.
printerName: Allows a specific printer to be selected to print to.
pageSubset: Can choose to print all pages, or all even/odd pages.
printContent: Choose whether to print just the document content, document content *and* comments or to only print the contents of just the form fields.
Here shows an example of setting the above properties and printing the PDF document.
var objDoc = this;
var objPrintParams = doc.getPrintParams();
// Set so no dialog box is displayed at all to the user during printing
// Select which printer to print to
objPrintParams.printerName = "Canon Bubble-Jet BJC-6000";
// Print only odd pages
objPrintParams.pageSubset = objPrintParams.subsets.odd;
// Print both content and comments
// Print the PDF using properties just set with printParams object
OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.