Python操作InDesign
import win32com.client
app = win32com.client.Dispatch('InDesign.Application.CC.2017')
myDocument = app.Documents.Add()
myPage = myDocument.Pages.Item(1)
myTextFrame = myPage.TextFrames.Add()
myTextFrame.GeometricBounds = ["6p0", "6p0", "18p0", "18p0"]
myTextFrame.Contents = "Hello World!" ...