Skip to main content
Inspiring
March 4, 2020
Answered

Possible to set the pdf export preference for "Create separate pdf file" check box in a javascript

  • March 4, 2020
  • 2 replies
  • 638 views

I'm exporting a series of pdf pages using javascript and when I create the pdf it always seems to toggle that preference on and put the pdf's into a folder. I would like them to just be on the desktop but it just keeps turning it back on. Anyone know if its possible and how? My guess it would be something like this:  createSeperatePdf = false;

This topic has been closed for replies.
Correct answer Manan Joshi

That would be the exportAsSinglePages property. See the following link

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PDFExportPreference.html

 

-Manan

2 replies

Community Expert
March 5, 2020

It would be better to create a pdfpreset with your required settings and then use that to export your pdfs rather than editing the pdfexportpreference. You can provide the pdfpreset to use when you export the pdf using scripting. See the following

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Document.html#d1e49241__d1e53606

 

-Manan

-Manan
Manan JoshiCommunity ExpertCorrect answer
Community Expert
March 4, 2020

That would be the exportAsSinglePages property. See the following link

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PDFExportPreference.html

 

-Manan

-Manan