Adobe InDesign: SDK/Scripting Bugs and Features

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. 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){
    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);
    pfResults = pfProcess.aggregatedResults[2];

    ––> 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 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  CEP  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Adobe InDesign: SDK/Scripting Bugs and Features


Feedback and Knowledge Base