Adobe InDesign CS6 Server (8.0) Object Model JS: PNGExportPreference

InDesign Server CS6

Class

PNGExportPreference

 PNG export preferences. Base Class: Preference

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Application
Preference
PNGExportPreference
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
antiAliasbool r/wIf true, use anti-aliasing for text and vectors during export.
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
exportResolutionnumber (range: 1 - 2400) r/wThe export resolution expressed as a real number instead of an integer. (Range: 1.0 to 2400.0)
exportingSpreadbool r/wIf 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.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
pageStringstring r/wThe page(s) to export, specified as a page number or an array of page numbers. Note: Valid when PNG export range is not all.
parentApplication readonlyThe parent of the PNGExportPreference (a Application).
pngColorSpacePNGColorSpaceEnum:
PNGColorSpaceEnum.RGB
PNGColorSpaceEnum.GRAY
r/wRGB or Gray
pngExportRangePNGExportRangeEnum:
PNGExportRangeEnum.EXPORT_RANGE
PNGExportRangeEnum.EXPORT_ALL
r/wThe page range to export.
pngQualityPNGQualityEnum:
PNGQualityEnum.LOW
PNGQualityEnum.MEDIUM
PNGQualityEnum.HIGH
PNGQualityEnum.MAXIMUM
r/wThe compression quality.
propertiesObject r/wA property that allows setting of several properties at the same time.
simulateOverprintbool r/wIf true, simulates the effects of overprinting spot and process colors in the same way they would occur when printing.
transparentBackgroundbool r/wIf true, use a transparent background for the exported PNG.
useDocumentBleedsbool r/wIf true, uses the document's bleed settings in the exported PNG.

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

Array of PNGExportPreference getElements ()
Resolves the object specifier, creating an array of object references.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.pngExportPreferences

Return

Array of PNGExportPreference PNGExportPreference.getElements ()

Jongware, 28-Apr-2012 v3.0.3iContents :: Index