Copy link to clipboard
Copied
Hi,
how to load a word preset options (which was shown while placing word document into indesign) into indesign using javacript?
pls helpa
Copy link to clipboard
Copied
Hi,
what did you try so far? Did you search the Scripting Forum?
Here some answers you'd perhaps not like:
Re: how to include preset in RTF import option while importing RTF files?
Re: [AS][CS3] word rtf import preferences
Perhaps a way out ? :
Re: JS-CS4: Word/RTF import presets
Regards,
Uwe
Copy link to clipboard
Copied
Hi,
Thanks for your reply.. i want to load a WordRTFPreferences as a file into indesign using script.
like app.importFile(ExportPresetFormat,file)
for example the user give wordpreferences as a xml file.. i want to load a xml file into indesign
Copy link to clipboard
Copied
Since this is not possible using scripting my best bet is: Inspect the xml file, extract all possible and relevant properties and values and work directly with WordRTFPreferences.
Regards,
Uwe
Copy link to clipboard
Copied
ok, is it possible to get applied word import options
Copy link to clipboard
Copied
What you cannot define with WordRTFPreferences is style matching. What paragraph style or character style in the Word doc should match what style in the InDesign document. And you also cannot tell directly what smp file is currently loaded as preset. You perhaps could deduce that if you look at the property/value pairs of app.wordRTFPreferences and compare all that with all available smp files.
See also:
Map Paragraph and Character Styles
Regards,
Uwe
Copy link to clipboard
Copied
Hi Uwe, did you found any solution for mapping styles