Skip to content

Adobe InDesign: SDK/Scripting Bugs and Features

1 result found

  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){
            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 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  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

Adobe InDesign: SDK/Scripting Bugs and Features

Categories

Feedback and Knowledge Base