This content has been marked as final. Show 3 replies
Is IDML disk export only, as well?
Does anyone know?
You can only use the exportFile method to export to disk. But you're entirely free to use any tagging/markup scheme you want to put data into a text variable. Take a look at the ExportHTML.jsx example--it shows how to mark up text as HTML and write it to disk (without using exportFile), but instead of writing to disk, it could easily write the text into a variable.
Sorry, I was looking for a way to use one of the standardized formats of InDesign, without disk access, for exporting text and then importing it back. (Actually InDesign server, exposing the exported text through a web service, but the scripting language is the same, so it should not matter). To replicate the XML or tagged text export with script code would not be very appealing.
The code is up and running, but the disk access of the current export/import implementation is unwanted.