Copy link to clipboard
Copied
I have a couple lines of code that are exporting PDFs for me. Problem is, the PDF export remembers the last settings used. Is there anyway to access the "Create Separate PDFs" feature through scripting? The purpose of my script is to take a multipage document, and turn it into 1 PDF, but if I use this checkbox, the next time I end up with hundreds of PDFs instead of 1. I could use the presets but would rather create my own settings for consistency.
I was unable to locate any settings through http://jongware.mit.edu/idcs6js/pc_PDFExportPreference.html
Copy link to clipboard
Copied
This property lies with the pdfExportPreset and not pdfExportPreference. See the exportAsSinglePages property in the following link
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PDFExportPreset.html
This feature was added in CC2018 onwards i suppose, so keep that in mind. So the ideal thing would be to create your own preset with this setting enabled(which can be altered by scripting as well) and use that to export.
-Manan