Skip to main content
Inspiring
October 17, 2022
Question

how to write a script for export to pedf interactive?

  • October 17, 2022
  • 2 replies
  • 1657 views

hi, it exist lot of nice script for export to pdf but, i need to integrate it into my script

 

2 possiblity, i write it  into my actual big script after update all link by recusrion, we can export the "etiquette fini.indd" file

 

 

or i write a script with scan mask function for open only the "etiquette fini.indd" file name (name existing in 70 version file with 70 path different), and i export only this file to pdf interactive?

 

 

thanks for your help

 

i m so close to finish my job

This topic has been closed for replies.

2 replies

Community Expert
October 17, 2022

Hi @laurence roussel12011930 ,

it may help to look into the code of Peter Kahrel's script Batch Process:

https://creativepro.com/files/kahrel/indesign/batch_convert.html

 

See also into DOM documentation:

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

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Inspiring
October 17, 2022

ok, we can test name file, if we will close "étiquette finie.indd" we will export it to pdf

Loic.Aigon
Legend
October 17, 2022

You may as well consider the sample from the official documentation (cf P55) : https://usermanual.wiki/adobe/InDesigncs6ScriptingJSEN.3768967468/view

 

Although the doc is CS6 old, the method didn't move much.

 

Community Expert
October 17, 2022

Exporting pdf is just a few lines of code, so I would suggest add it to your bigger script that does all the relinking and before closing the INDD file export the pdf as well

-Manan

-Manan
Inspiring
October 17, 2022

ok because pdf export can generate some crash it s maybe better to use this function separatly?

Community Expert
October 17, 2022

Why would it crash? And if it does crash under some circumstance then it will crash even if you keep the PDF export code in a seperate file. I again suggest to you don't shift your focus to multiple goals. First target to create a workable script and then keep on adding error handling, doing refactoring etc as and when needed otherwise you will keep looking for alternatives

-Manan

-Manan