InDesign - Export Entire Book (.indb) to One PDF File Script
I got the following script (PrintChapter.jsx) set up to export a single book chapter (with assigned shortcut "Ctrl-P"). It works really fast.
var myPDFExportPreset = app.pdfExportPresets.item("[High Quality Print]");
// Change myPDFpreset to the name of the preset you want to use
var myDoc = app.activeDocument;
var myFolderName = myDoc.filePath;
// Apply a name to the PDF file based on the INDD file, but without the .indd extension
var myDocumentName = myDoc.name.slice (0, -5);
var myFilePath = myFolderName + "/" + myDocumentName + ".pdf";
var myFile = new File(myFilePath);
// Do not open the PDF Export dialog box. Set "false" to "true" if you want the dialog box.
myDoc.exportFile(ExportFormat.pdfType, myFile, false, myPDFExportPreset);
What is the modification to print out an entire book (.indb) also in one shot without any dialog boxes, or opening all the chapter files?
