2 Replies Latest reply on Sep 28, 2010 9:04 AM by behrk2

    Exporting InDesign to PDF without opening any files?

    behrk2 Level 1

      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[x]));

              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!