1 Reply Latest reply on Aug 26, 2015 8:12 AM by Ronald63

    export to pdf using joboption

    aviR Level 1

      hello all

      Please anyone tell me how can I export a document to pdf using joboption?

      I have tried this with no result:

      iddoc.Export(idExportFormat.idPDFType, pdfcreationfilepath, False, idapp.PDFExportPresets.Item(Joboptionfile))

       

      Where am I going wrong? It gives error : THE REQUESTED MEMBER OF THE COLLECTION DOES NOT EXIST

      Please help

      Thanks

        • 1. Re: export to pdf using joboption
          Ronald63 Level 4

          Hi,

           

          Try this JS snippet ...

          //Javascript code
          var myJoboption = "tca.joboptions"
          var myJoboptionsName= myJoboption.split(".joboptions").join("");
          var myPDFexportPreset = app.pdfExportPresets.item(myJoboptionsName);
          var myPDFname = app.activeDocument.name.split(".indd").join(".pdf")
          var myPDF = new File("~/Documents/" + myPDFname);
          app.activeDocument.exportFile(ExportFormat.pdfType, myPDF, false,myPDFexportPreset);
          

           

          Regards