Adobe InDesign CS6 (8.0) Object Model JS: ExportForWebPreference

InDesign CS6

Class

ExportForWebPreference

 Export for web preferences. Base Class: Preference

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Application | Document
Preference
ExportForWebPreference
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
copyFormattedImagesbool r/wIf true, copies formatted images to the images subfolder.
copyOptimizedImagesbool r/wIf true, copies optimized images to the images subfolder.
copyOriginalImagesbool r/wIf true, copies original images to the images subfolder.
eventListenersEventListeners readonlyA collection of event listeners.
eventsEvents readonlyA collection of events.
gifOptionsInterlacedbool r/wIf true, generates interlaced GIFs. Note: Not valid when image conversion is JPEG.
gifOptionsPaletteGIFOptionsPalette:
GIFOptionsPalette.ADAPTIVE_PALETTE
GIFOptionsPalette.MACINTOSH_PALETTE
GIFOptionsPalette.WEB_PALETTE
GIFOptionsPalette.WINDOWS_PALETTE
r/wThe color palette for GIF conversion. Note: Not valid when image conversion is JPEG.
imageConversionImageConversion:
ImageConversion.AUTOMATIC
ImageConversion.JPEG
ImageConversion.GIF
ImageConversion.PNG
r/wThe file format to use for converted images. Note: Valid only when copy optimized images and/or copy formatted images is true.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
jpegOptionsFormatJPEGOptionsFormat:
JPEGOptionsFormat.BASELINE_ENCODING
JPEGOptionsFormat.PROGRESSIVE_ENCODING
r/wThe formatting method for converted JPEG images. Note: Not valid when image conversion is GIF.
jpegOptionsQualityJPEGOptionsQuality:
JPEGOptionsQuality.LOW
JPEGOptionsQuality.MEDIUM
JPEGOptionsQuality.HIGH
JPEGOptionsQuality.MAXIMUM
r/wThe quality of converted JPEG images. Note: Not valid when image conversion is GIF.
parentApplication
Document
readonlyThe parent of the ExportForWebPreference (a Application or Document).
propertiesObject r/wA property that allows setting of several properties at the same time.

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 ExportForWebPreference 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 ExportForWebPreference.

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.exportForWebPreferences

Document.exportForWebPreferences

Return

Array of ExportForWebPreference ExportForWebPreference.getElements ()

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