Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

As the title says we were discussing scripting processes and we noticed this has not been asked nor do I know if it can be done. Can you create an InDesign script that will take all .indd files and print/export them to .pdf?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Page 44 of the cs5 indesign scripting guide has code samples for exporting PDF files. One only need provide code to open and close the required files. The easy way is to pipe or provide a file list, the less easy way is to enumerate the indd files (or shortcuts to randomly scattered files) in a folder and then open and export each in turn.

var myPDFExportPreset = app.pdfExportPresets.item("prepress");
app.activeDocument.exportFile(ExportFormat.pdfType, File("/c/myTestDocument.pdf"),
false, myPDFExportPreset);
share|improve this answer
    
+1 and for just in case: wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/… –  Gramps Jun 13 '13 at 17:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.