1 person found this helpful
app > pngExportPreferences > transparentBackground
If true, use a transparent background for the exported PNG.
Thank you for the fast response!
I tried access to
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?
app.hostObjectDelegate.pngExportPreferences.transparentBackground = true;
Thank you Harbs., that solves my problem!
If you want, you can take our image export script. It has a option to activate PNG transparency for the export.
You can download the Script at GitHub: InDesignScripts/image-export at master · le-tex/InDesignScripts · GitHub