Adobe 65009333 Scripting Guide - Page 29
The following script shows how to set tagged text-import preferences for the complete script, see
UPC - 883919155852
View all Adobe 65009333 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 29 highlights
Text and Type Placing text and setting text-import preferences 29 The following script shows how to set tagged text-import preferences (for the complete script, see TaggedTextImportPreferences): //Sets the tagged text import filter preferences. with(app.taggedTextImportPreferences){ removeTextFormatting = false; //styleConflict property can be: //StyleConflict.publicationDefinition //StyleConflict.tagFileDefinition styleConflict = StyleConflict.publicationDefinition; useTypographersQuotes = true; } The following script shows how to set Word and RTF import preferences (for the complete script, see WordRTFImportPreferences): //Sets the Word/RTF import filter preferences. with(app.wordRTFImportPreferences){ //convertPageBreaks property can be: //ConvertPageBreaks.columnBreak //ConvertPageBreaks.none //ConvertPageBreaks.pageBreak convertPageBreaks = ConvertPageBreaks.none; //convertTablesTo property can be: //ConvertTablesOptions.unformattedTabbedText //ConvertTablesOptions.unformattedTable convertTablesTo = ConvertTablesOptions.unformattedTable; importEndnotes = true; importFootnotes = true; importIndex = true; importTOC = true; importUnusedStyles = false; preserveGraphics = false; preserveLocalOverrides = false; preserveTrackChanges = false; removeFormatting = false; //resolveCharacterSytleClash and resolveParagraphStyleClash properties can be: //ResolveStyleClash.resolveClashAutoRename //ResolveStyleClash.resolveClashUseExisting //ResolveStyleClash.resolveClashUseNew resolveCharacterStyleClash = ResolveStyleClash.resolveClashUseExisting; resolveParagraphStyleClash = ResolveStyleClash.resolveClashUseExisting; useTypographersQuotes = true; }