📌 How to Automate "Print Booklet" (Saddle Stitch) in InDesign with JavaScript?
Hi everyone,
I'm trying to automate the "Print Booklet" feature in InDesign, specifically using the Saddle Stitch (2-up) option. My goal is to:
1️⃣ Split a document into multiple PDFs, each containing 20 pages.
2️⃣ Ensure that each PDF is imposed correctly for saddle stitch binding.
3️⃣ Automate the process using JavaScript (ExtendScript) so I don’t have to manually use "Print Booklet" for each section.
I have successfully created a script that exports the document in chunks of 20 pages, but I can't find a way to apply Print Booklet (Saddle Stitch) through scripting.
🔹 Problem:
- InDesign doesn’t seem to expose "Print Booklet" to ExtendScript.
- Trying to use doc.printBooklet(PrintPreset.PDF, exportPDF); gives an error.
- Manually opening "Print Booklet" works, but I need automation.
Has anyone managed to automate Print Booklet in InDesign?
Thanks in advance! 🚀
