CHAPTER 3: Documents Exporting a Document as PDF 44
//------------------------------------------------------------------------
//Properties corresponding to the controls in the
//Graphics panel of the Print dialog box.
//------------------------------------------------------------------------
//If a device independent PPD is specified, trying to set the graphics
//send data will result in an error.
try{
sendImageData = ImageDataTypes.allImageData;
}
catch(myError){}
fontDownloading = FontDownloading.complete;
downloadPPDFOnts = true;
try{
dataFormat = DataFormat.binary;
}
catch(e){}
try{
postScriptLevel = PostScriptLevels.level3;
}
catch(e){}
//------------------------------------------------------------------------
//Properties corresponding to the controls in the Color Management
//panel of the Print dialog box.
//------------------------------------------------------------------------
//If the useColorManagement property of app.colorSettings is false,
//attempting to set the following properties will return an error.
try{
sourceSpace = SourceSpaces.useDocument;
intent = RenderingIntent.useColorSettings;
crd = ColorRenderingDictionary.useDocument;
profile = Profile.postscriptCMS;
}
catch(e){}
//------------------------------------------------------------------------
//Properties corresponding to the controls in the Advanced
//panel of the Print dialog box.
//------------------------------------------------------------------------
opiImageReplacement = false;
omitBitmaps = false;
omitEPS = false;
omitPDF = false;
//The following line assumes that you have a flattener
//preset named "high quality flattener".
try{
flattenerPresetName = "high quality flattener";
}
catch(e){}
ignoreSpreadOverrides = false;
}
Printing with printer presets
To print a document using a printer preset, include the printer preset in the print command.
Exporting a Document as PDF
InDesign scripting offers full control over the creation of PDF files from your page-layout documents.