2 Replies Latest reply on May 5, 2016 11:19 PM by RJ9191

    Create temp pdf file using javascript

    RJ9191 Level 1

      I want to create a temporary pdf file of active document which will have multiple artboard  in a single pdf file,and artboards can have any combination as per user input.Like if a document have 4 artboards then range can be 1-2,1-3,1-4,2-4 etc.


      var doc = app.activeDocument;

                  if ( app.documents.length > 0 ) {

                  var saveName = new File ( "dest" );

                   saveOpts = new PDFSaveOptions();

                   pdfSaveOptions.SaveMultipleArtboards = true;


                  doc.saveAs( saveName, saveOpts );



      i have tried this code but no luck and also this code opening a dialog to save which i don't want,plz help thanks in advance.