0

我正在使用 InDesign Server 和基于肥皂的应用程序通过服务器进行通信。

我能够获取 indd 文档中使用的所有表单字段,并且还能够替换其文本/值。

现在,我希望获取 indd doc 中使用的所有图像,并在我的应用程序中提供上传图像选项,并能够用用户选择的图像替换图像。任何人都可以提供用于识别和替换图像的脚本。

其次,为了向后兼容,我有一个 indd 文档的 idml。现在如何导入或打开这个 idml 并通过脚本将其转换为 indd doc。

第三,如何将pdf转换为indd doc。

请帮助我处理这些脚本。

4

1 回答 1

0

要将 IDML 文件转换为 .indd 文件,只需打开并保存即可

set theIDMLFile to "Macintosh HD:Users:me:Desktop:someidmlfile.idml"

tell application "InDesignServer"
    set convertedIDMLDoc to open alias theIDMLFile
    tell convertedIDMLDoc
        save to ((characters 1 thru -6 of theIDMLFile) & ".indd") as string
    end tell
end tell
于 2015-11-19T20:16:11.110 回答