PNGExportPreference

PNG export preferences.

Methods:

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Objects:

Boolean, EventListeners, Events, Number, Object, PNGColorSpaceEnum, PNGExportRangeEnum, PNGQualityEnum, String

Hierarchy:

Superclass: Preference

Class: PNGExportPreference

Property Listing

Property

Type

Access

Description

antiAlias

Boolean

read/write

If true, use anti-aliasing for text and vectors during export.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

exportResolution

Number (range 1 - 2400)

read/write

The export resolution expressed as a real number instead of an integer. (Range: 1.0 to 2400.0)

exportingHiddenSpread

Boolean

read/write

If true, export hidden spreads. If false, skip export of hidden spreads.

exportingSpread

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.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

pageString

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.

parent

Application

readonly

The parent of the PNGExportPreference (a Application).

pngColorSpace

PNGColorSpaceEnum

PNGColorSpaceEnum.GRAY

PNGColorSpaceEnum.RGB

read/write

RGB or Gray

pngExportRange

PNGExportRangeEnum

PNGExportRangeEnum.EXPORT_ALL

PNGExportRangeEnum.EXPORT_RANGE

read/write

The page range to export.

pngQuality

PNGQualityEnum

PNGQualityEnum.HIGH

PNGQualityEnum.LOW

PNGQualityEnum.MAXIMUM

PNGQualityEnum.MEDIUM

read/write

The compression quality.

pngSuffix

String

read/write

Suffix to be used at the end of each exported file.

properties

Object

read/write

A property that allows setting of several properties at the same time.

simulateOverprint

Boolean

read/write

If true, simulates the effects of overprinting spot and process colors in the same way they would occur when printing.

transparentBackground

Boolean

read/write

If true, use a transparent background for the exported PNG.

useDocumentBleeds

Boolean

read/write

If true, uses the document's bleed settings in the exported PNG.

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

PNGExportPreference getElements ()

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

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

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. (Optional)

(default: false)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Application.pngExportPreferences

Event.parent

EventListener.parent

MutationEvent.parent

Return

PNGExportPreference.getElements()