Class
PNG export preferences. Base Class: Preference
addEventListener, getElements, removeEventListener, toSource, toSpecifier
PNGExportPreference
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
antiAlias | bool | r/w | 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) | r/w | The export resolution expressed as a real number instead of an integer. (Range: 1.0 to 2400.0) |
exportingSpread | bool | r/w | 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 | bool | readonly | Returns true if the object specifier resolves to valid objects. |
pageString | string | r/w | 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.RGB PNGColorSpaceEnum.GRAY |
r/w | RGB or Gray |
pngExportRange | PNGExportRangeEnum: PNGExportRangeEnum.EXPORT_RANGE PNGExportRangeEnum.EXPORT_ALL |
r/w | The page range to export. |
pngQuality | PNGQualityEnum: PNGQualityEnum.LOW PNGQualityEnum.MEDIUM PNGQualityEnum.HIGH PNGQualityEnum.MAXIMUM |
r/w | The compression quality. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
simulateOverprint | bool | r/w | If true, simulates the effects of overprinting spot and process colors in the same way they would occur when printing. |
transparentBackground | bool | r/w | If true, use a transparent background for the exported PNG. |
useDocumentBleeds | bool | r/w | If 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.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This 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.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the PNGExportPreference.
Element of
Application.pngExportPreferences
Return
Array of PNGExportPreference PNGExportPreference.getElements ()
Jongware, 28-Apr-2012 v3.0.3i | Contents :: Index |