CHAPTER 3: Documents Printing a Document 42
sequence = Sequences.all;
//------------------------------------------------------------------------
//Properties corresponding to the controls in the
//Output panel of the Print dialog box.
//------------------------------------------------------------------------
//negative = true;
//If a device independent PPD is specified, trying to set the colorOutput
//parameter will result in an error.
try{
colorOutput = ColorOutputModes.separations;
//Note the lowercase "i" in "Builtin"
trapping = Trapping.applicationBuiltin;
flip = Flip.none;
}
catch(myError){}
//If trapping is on, attempting to set the following
//properties will generate an error.
try{
if(trapping == Trapping.off){
printBlack = true;
printCyan = true;
printMagenta = true;
printYellow = true;
}
}
catch(myError){}
//Only change the ink angle and frequency when you want to override the
//screening set by the screening specified by the screening property.
//blackAngle = 45;
//blackFrequency = 175;
//cyanAngle = 15;
//cyanFrequency = 175;
//magentaAngle = 75;
//magentaFreqency = 175;
//yellowAngle = 0;
//yellowFrequency = 175;
//The following properties are not needed (because
//colorOutput is set to separations).
//compositeAngle = 45;
//compositeFrequency = 175;
//simulateOverprint = false;
//If trapping is on, setting the following properties will produce an error.
try{
if(trapping == Trapping.off){
printBlankPages = false;
printGuidesGrids = false;
printNonprinting = false;
}
}
catch(myError){}
//------------------------------------------------------------------------
//Properties corresponding to the controls in the
//Setup panel of the Print dialog box.
//------------------------------------------------------------------------
try{
paperSize = PaperSizes.custom;
//Page width and height are ignored if paperSize is not PaperSizes.custom.
//paperHeight = 1200;
//paperWidth = 1200;
printPageOrientation = PrintPageOrientation.portrait;