Exporting InDesign to PDF without opening any files?
Is it possible to do the following WITHOUT actually opening an InDesign file?
// Open, Export, & Close
for (x = myFileAmount;x >= 0; x--) {
app.open(File(myFolderContents));
numHyperlinks += createHyperlinks();
app.activeDocument.exportFile(
ExportFormat.pdfType, File(myFolder.fsName + "/" + app.activeDocument.name.split(".indd")[0] + ".pdf"), false, myPreset);
app.activeDocument.close(SaveOptions.no);
}
Thanks!
