2 Replies Latest reply on Aug 28, 2015 4:10 AM by aviR

    import adode pdf settings

    aviR Level 1

      how to import job option file into the document?

      Please help

      Thanks

        • 1. Re: import adode pdf settings
          Ronald63 Level 4

          Hello,

           

          Try this JS snippet...

          //Javascript code
          var myJoboption = "tca.joboptions";
          var myFile = File("~/Documents/" + myJoboption);
          
          if (!myFile.exists){
                  alert('File not found');
                  exit(); 
               }
          
          var myJoboptionsName= myJoboption.split(".joboptions").join("");
          // remove old joboptions
          if (app.pdfExportPresets.item(myJoboptionsName) != null){
              app.pdfExportPresets.item(myJoboptionsName).remove();
          }
          // load  new joboptions
          app.importFile(ExportPresetFormat.pdfExportPresetsFormat, myFile);
          

          Regards

          • 2. Re: import adode pdf settings
            aviR Level 1

            Hii

            Really sorry for replying so late.

            But your code was really helpful.

            Thank You very much.

            Thanks