Any way to save to earlier version?
alexberd opened this issue · 1 comments
alexberd commented
I tried to save a document using the document.Save(filepath) command but I couldn't find any way how to place an argument to define the saving version.
Any help will be appreciated.
Regards,
Alex
alexberd commented
I found how to export to IDML. This may help others. I am closing this.
import win32com.client
app = win32com.client.Dispatch('InDesign.Application.CC.2019')
myDocument = app.Open(filepath)
newFilePathIDML = filepath[:-5]+".idml"
idmlType = 1768189292
myPDFPreset = app.PDFExportPresets.Item(1)
myDocument.Export(idmlType, newFilePathIDML, False, myPDFPreset)