2 Replies Latest reply on Oct 14, 2015 7:20 PM by BEGINNER_X

    PDF Export with Ranges using UI

    BEGINNER_X Level 3

      Hi,

       

      Request:

      PDF export with All or Range Pages with UI concept.

      We need UI with the Dialog or Palette concept.

       

      So far,

       

      myDlg = new Window('palette', 'XXX Export Option');
      myDlg.orientation = 'column';
      myDlg.alignment = 'left';
      //add drop-down
      myDlg.DDgroup = myDlg.add('group');
      
      var DialGroup = myDlg.DDgroup = myDlg.add('group');
      DialGroup.add("statictext", undefined, "Choose Page Nos.");
      DialGroup.orientation = 'column';
      DialGroup.alignment = 'left';
      var myRBAll = DialGroup.add('radiobutton', undefined, "All "); //1
      
      
      var myRBRange = myDlg.DDgroup.add('radiobutton', undefined, "Range");   //2
      var myList = myDlg.DDgroup.add('edittext');
      myList.minimumSize.width = 150;
      myDlg.DDgroup.orientation = 'row';
      
      myDlg.show();
      
      
      with(app.pdfExportPreferences){
      pageRange = mypageRange;
      }
      
      var myPDFFilePath = File("~/Desktop/abc.pdf")
      app.activeDocument.exportFile ( ExportFormat.pdfType, myPDFFilePath, false);
      
      
      myRBAll.addEventListener('click', function(event) {
      });
      
      myRBRange.addEventListener('click', function(event) {
          myList.enableBehavior = true;
      ////~ alert("Clicked RadioButton: " + this.text + "\nValue: " + event.target.value);
      });
      
      

       

       

      Screen Shot 2015-10-13 at 13.44.01.png

       

       

      Thanks in Advance

      Siraj