Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.