1 Reply Latest reply on Mar 23, 2016 5:26 AM by Furnival Sq

    packageForPrint API Change

    bob_baldwin Level 1

      The packageForPrint API has changed in the latest release of InDesign CC (10.x), breaking one of our plug-ins. We cannot find documentation for the API, but the error thrown is straightforward: "Error Invalid value for parameter 'includeIdml' of method 'packageForPrint'. Expected Boolean, but received "". Error: Invalid value for parameter 'includeIdml' of method 'packageForPrint'. Expected Boolean, but received "". We could, of course, experiment with param passing, but it would be much easier if someone out there knew the changed API. Thanks for anyone's help in advance.

        • 1. Re: packageForPrint API Change
          Furnival Sq

          Have you managed to fix this? We are hitting the same issue with some of our code. Disappointingly, almost 2 years later, documentation remains pretty sparse.

           

          The following set of parameters work for me:

          doc.packageForPrint(

             packFol, // to

             true, // copying fonts

             true, // copying linked

             false, // copying profiles

             true, // updating graphics

             false, // including hidden layers

             true, // ignore preflight errors

             true, // creating report

             true, // [include idml]

             true, // [include pdf]

             "", // [pdf style]

             "", // [version comments]

             true // [force save]

          );