var doc = app.open(File("path/to/file.indd")); doc.exportFile(ExportFormat.INDESIGN_MARKUP, File("path/to/file.idml")); doc.close();
To ensure smooth conversion and minimize compatibility issues:
Best for: Sending files to printers or collaborators who need to edit the document.
