I've found plenty of scripts where I can define resolution, but is possible to export the first page of an indesign document with a specified height (in this case 20mm at 300dpi). I have several thousand documents to do and need a script!
Thanks
I've found plenty of scripts where I can define resolution, but is possible to export the first page of an indesign document with a specified height (in this case 20mm at 300dpi). I have several thousand documents to do and need a script!
Thanks
It is possible, but you might have to do it outside of InDesign by calling an external script (applescript or vb). Here's an example exporting the first page of the active document as a jpeg with javascript. You can use app.doScript()
to call the applescript or vb after exporting.
var doc = app.activeDocument;
app.jpegExportPreferences.properties = {
exportResolution: 300, // dpi
exportingSpread: false,
jpegExportRange: ExportRangeOrAllPages.exportRange,
jpegQuality: JPEGOptionsQuality.maximum,
pageString: "1"
};
var exportPath = File("~/Desktop/TestExport.jpg");
doc.exportFile(ExportFormat.jpg, exportPath, false);
// Do additional image transformation here using external program