InDesign Server2025
API 20.5.0.49
Object

TextImportPreference

Text import preferences.

Preference ›TextImportPreference
Hierarchy

Application

TextImportPreference

Properties

NameType AccessDescription
TextImportCharacterSet
+27 more
read/write The computer language character set used to create the text file.
Boolean read/write If true, converts the specified number of spaces into a tab. For information on specifying the number of spaces, see spaces into tabs count.
String read/write The dictionary to use for the imported text.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean readonly Returns true if the object specifier resolves to valid objects.
Application readonly The parent of the TextImportPreference (a Application).
ImportPlatform
read/write The platform used to create the imported text file.
Object read/write A property that allows setting of several properties at the same time.
Number read/write The number of spaces to convert to a tab. Note: Valid when convert spaces into tabs is true.
Boolean read/write If true, the import filter removes extra carriage returns at the ends of lines.
Boolean read/write If true, the import filter removes extra carriage returns between paragraphs.
Boolean read/write If true, convert straight quotes and apostrophes in the imported text to typographic quotation marks and apostrophes.

Methods

→ EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
→ TextImportPreference[]

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

→ Boolean

Removes the event listener.

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.
→ String

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

→ String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a TextImportPreference.

Return 1

Methods that return a TextImportPreference.