InDesign2026
API 21.5.1.73
Object

PNGExportPreference

PNG export preferences.

Preference PNGExportPreference
Hierarchy

Application

PNGExportPreference

Properties

NameType AccessDescription
Boolean read/write If true, use anti-aliasing for text and vectors during export.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number 1–2400 read/write The export resolution expressed as a real number instead of an integer. (Range: 1.0 to 2400.0)
Boolean read/write If true, export hidden spreads. If false, skip export of hidden spreads.
Boolean read/write If true, exports each spread as a single PNG file. If false, exports facing pages as separate files and appends sequential numbers to each file name.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write The page(s) to export, specified as a page number or an array of page numbers. Note: Valid when PNG export range is not all.
Application readonly The parent of the PNGExportPreference (a Application).
PNGColorSpaceEnum
read/write RGB or Gray
PNGExportRangeEnum
read/write The page range to export.
PNGQualityEnum
read/write The compression quality.
String read/write Suffix to be used at the end of each exported file.
Object read/write A property that allows setting of several properties at the same time.
Boolean read/write If true, simulates the effects of overprinting spot and process colors in the same way they would occur when printing.
Boolean read/write If true, use a transparent background for the exported PNG.
Boolean read/write If true, uses the document's bleed settings in the exported PNG.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
PNGExportPreference[]

Resolves the object specifier, creating an array of object references.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Generates a string which, if executed, will return the PNGExportPreference.

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a PNGExportPreference.

Return 1

Methods that return a PNGExportPreference.