Wanted to find a way to get this script, but after I Google'd this, it seems that it's not so easy to find. Can anyone help me with this? I need a script that makes a folder with job name and in the folder creates .indd
, .inx
, .pdf
files that links and embeds fonts.
1 Answer
InDesign CS3 JS API exposes Document object method:
bool packageForPrint (to: File,
copyingFonts: bool,
copyingLinkedGraphics: bool,
copyingProfiles: bool,
updatingGraphics: bool,
includingHiddenLayers: bool,
ignorePreflightErrors: bool,
creatingReport: bool
[, versionComments: string]
[, forceSave: bool=false])
This is programatically equivalent to the Package action. The same object also has method
void exportFile (format: varies,
to: File
[, showingOptions: bool=false]
[, using: PDFExportPreset]
[, versionComments: string]
[, forceSave: bool=false])
which can be used to produce PDF, INX and other supported files types.
You'll find more information at http://jongware.mit.edu/indesigncs3jshelp/pc_Document.html and in appropriate InDesign Scripting Guide.
File > Package...
File > Package
. Are you asking for a way to output everything such as.indd
,.pdf
, fonts resources etc. etc. in a package folder?