有没有办法使用 InDesign 服务器将页面导出为 png 格式?
以下代码适用于文本框架。我如何对完整的页面内容执行相同的操作?
var theDocument = app.documents.add();
var thePage = theDocument.pages[0];
var theTextFrame = thePage.textFrames.add();
theTextFrame.geometricBounds = [5,5,40,40];
theTextFrame.contents = TextFrameContents.placeholderText;
theTextFrame.exportFile(ExportFormat.pngFormat, File("c:\\test.png"));