Adobe InDesign: SDK/Scripting Bugs and Features
1 result found
-
PreflightScope not working
PreflightOptions.preflightScope in InDesign has not worked since at least CS 5.5. No matter what value is used, preflight checks the whole document. Here is a sample script (error for color image <250 ppi) that the issue can be tested:
var currDoc = app.documents[0]; if (app.preflightProfiles.itemByName("export").isValid){ app.preflightProfiles.itemByName("export").remove(); } var pfProfile = app.preflightProfiles.add({name: "export"}); var pfResRule = pfProfile.preflightProfileRules.add("ADBE_ImageResolution", {flag: PreflightRuleFlag.returnAsError}); pfResRule.ruleDataObjects.add("color_min_res", RuleDataType.realDataType, 250); currDoc.preflightOptions.preflightScope = '1-2'; var pfProcess = app.preflightProcesses.add(currDoc, pfProfile); pfProcess.waitForProcess(); pfResults = pfProcess.aggregatedResults[2]; $.writeln(pfResults);
––> with a 3-page document with problems on pages 2 and 3, InDesign reports both problems despite the scope been set to ‘1-2’ (same with ‘1’…
8 votesThanks for reporting
We are reviewing the issue-InDesign Team
- Don't see your idea?