Extends
Instance Properties
| Name | Description | Access |
|---|---|---|
| dataMergeFields | DataMergeFields A collection of data merge fields. | read-only |
| dataMergePreferences | DataMergePreference The data merge preference properties that define the layout and content of the target page. | read-only |
| eventListeners | EventListeners A collection of event listeners. | read-only |
| events | Events A collection of events. | read-only |
| isValid | bool Returns true if the object specifier resolves to valid objects. | read-only |
| parent | Document The parent of the DataMerge (a Document). | read-only |
| preferences | Preferences A collection of preferences objects. | read-only |
| properties | Object A property that allows setting of several properties at the same time. | read-write |
Methods
| addEventListener( | eventType, handler [, captures]) |
→ EventListener |
| exportFile( | to [, using] [, outputOversetReportFile]) |
| getElements( | ) |
→ DataMerge |
| mergeRecords( | [outputOversetReportFile]) |
| removeEventListener( | eventType, handler [, captures]) |
→ bool |
| selectDataSource( | dataSourceFile) |
| toSource( | ) |
→ string |
| toSpecifier( | ) |
→ string |
-
addEventListener( eventType, handler [, captures=false])→ EventListener -
Adds an event listener.
eventTypestring The event type. handlerThe event handler. Can accept: File or JavaScript Function. capturesbool This parameter is obsolete. (Optional) -
exportFile( to [, using] [, outputOversetReportFile]) -
Merges records and exports to PDF.
toFile The path of exported PDF file. usingPDFExportPreset The PDF export style to use. (Optional) outputOversetReportFileFile The path to the file in which to store the overset report. (Optional) -
getElements( )→ DataMerge -
Resolves the object specifier, creating an array of object references.
-
mergeRecords( [outputOversetReportFile]) -
Merges records and produces an optional overset report.
outputOversetReportFileFile The path to the file in which to store the overset report. (Optional) -
removeDataSource( ) -
Removes the data source.
-
removeEventListener( eventType, handler [, captures=false])→ bool -
Removes the event listener.
eventTypestring The registered event type. handlerThe registered event handler. Can accept: File or JavaScript Function. capturesbool This parameter is obsolete. (Optional) -
selectDataSource( dataSourceFile) -
Specifies the file to use as the data source.
dataSourceFileFile The path to the data source file. -
toSource( )→ string -
Generates a string which, if executed, will return the DataMerge.
-
toSpecifier( )→ string -
Retrieves the object specifier.
-
updateDataSource( ) -
Updates the data source file with the most current data.