Search code examples
c++sdkadobe-indesign

Package indesign document with SDK c++


I would like to package an indesign document through the SDK (c++ or javascript, it doesn't matter) but I cannot find any documentation.

Does anyone know if it is possible?

This is the duplication of the question Packaging a document with Indesign SDK that was marked as answered but the accepted answer describes how to package via UI and NOT via SDK.

Thanks!


Solution

  • Yes, you can do this with JavaScript. All you need to do is call the packageForPrint method of InDesign's document object and use a whole lot of booleans to set the options (see the linked doc page for details).