我需要将Indesign CS3和夸克文件的每一页保存为JPEG,在我的可可应用程序中使用Objective C...
有人能在这方面给我建议吗?
谢谢
发布于 2009-08-28 10:34:26
这听起来像是Applescript的任务。您可以编写一个使用Indesign applescript字典的Applescript,然后用Cocoa和Objective C包装您的applescript。
Indesign and Applescript
Cocoa to Applescript bridge
不确定如何围绕applescript做Cocoa包装器?Xcode附带的开发人员工具代码示例中有一些代码示例。
这可能是有用的AppleScript and Cocoa: from Top to Bottom。
发布于 2011-04-23 17:45:21
导出PDF,然后导出为JPEG。要导出为PDF,请查看此帖子:http://objectmix.com/adobe-indesign/238509-newbie-question-how-batch-export-multiple-indd-pdf-files.html
发布于 2016-07-25 11:44:14
我怀疑这是否真的是您想要的,但是这个InDesign JavaScript可能会对您有所帮助。它将打开文档的每一页导出为单独的jpeg。
var myFilePath, myFile,myDoc, myPages, myPage, myPageNum;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 200;
app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.EXPORT_RANGE;
myDoc = app.activeDocument;
myPages = myDoc.pages;
for (var i = 0; i < myPages.length; i++) {
myPage = myPages[i];
myPageNum = myPage.name;
myFilePath = "~/Desktop/exported_jpegs/" + myDoc.name.replace(/indd$/, "") + " page " + myPageNum + ".jpg";
myFile = new File(myFilePath);
app.jpegExportPreferences.pageString = myPageNum;
myDoc.exportFile(ExportFormat.jpg, myFile, false);
} https://stackoverflow.com/questions/1334025
复制相似问题