Skip to main content
Known Participant
July 29, 2022
Answered

Scripting to embed Preflight

  • July 29, 2022
  • 1 reply
  • 511 views

Hi - does anyone know of it's possible to embed a pdf preflight profile to all documents contained within a book, simulaneously (if so is there a javascript available)?

MTIA Steve

This topic has been closed for replies.
Correct answer brian_p_dts

See my script for iterating through book documents and using Rob's code. 

1 reply

rob day
Community Expert
Community Expert
July 29, 2022

You can embed an InDesign profile—the document has an embed() method:

 

//embeds a preflight profile named "Transparency"
app.activeDocument.embed("Transparency")
brian_p_dts
Community Expert
brian_p_dtsCommunity ExpertCorrect answer
Community Expert
July 29, 2022
Known Participant
August 1, 2022

Brian, thanks for the guidance. I currently use a script for processing book documents written by Kaysan Servetsky. I'll see if I can work it out.

Steve