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(&quot;export&quot;).isValid){
    app.preflightProfiles.itemByName(&quot;export&quot;).remove();
    }
    var pfProfile = app.preflightProfiles.add({name: &quot;export&quot;});
    var pfResRule = pfProfile.preflightProfileRules.add(&quot;ADBE_ImageResolution&quot;, {flag: PreflightRuleFlag.returnAsError});
    pfResRule.ruleDataObjects.add(&quot;color_min_res&quot;, RuleDataType.realDataType, 250);
    currDoc.preflightOptions.preflightScope = &#39;1-2&#39;;
    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’…

    7 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    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

Categories

Feedback and Knowledge Base