I usually export a page item to a transparent PNG image in InDesign CS5.5 (and below) using the following script:
pageItem.exportFile(ExportFormat.pngFormat, exportImageFile);
But this script does not work in InDesign CS6: it exports a non-transparent PNG instead. It seems that CS6 adds a new option to decide whether the export PNG image is transparent or not -- and the default value is non-transparent.
I've tried to change this option for a transparent PNG but haven't succeeded, can you please help?
Thank you for the fast response!
I tried access to
app.pngExportPreferences.transparentBackground
in CS Extension Builder 2.0 but it results in an compiler error:
-1119: Access of possibly undefined property pngExportPreferences through a reference with static type com.adobe.indesign:Application.
I read on somewhere on this forum that pngExportPreferences is a new property of CS6 DOM (cannot find any official document from Adobe though) -- but it seems like CS Extension Builder has not supported this property yet. Any suggestion?
North America
Europe, Middle East and Africa
Asia Pacific