2 Replies Latest reply on Jul 12, 2016 2:07 AM by karthiks94217840

    Interactive pdf export preference

    karthiks94217840 Level 2

      Dear Friends,

       

      My work: I need to create interactive pdf and including some preference value is below i have place screenshot.

       

      I need "interactive pdf export preference setting" only. I have try some code but not working. What i need to interactive pdf setting in the below screenshot. Otherwise, i have place my code also. Please suggest friends.

       

      My code:

       

      
      var myDocument = app.activeDocument;  
      var myFileName;  
      if (myDocument.modified == false) {  
          myFileName = myDocument.fullName + "";  
          if (myFileName.indexOf(".indd") != -1) {  
              var myRegularExpression = /.indd/gi;  
              myFileNamePDF_Web = myFileName.replace(myRegularExpression, ".pdf");  
          }  
          with(app.pdfExportPreferences) {  
              
      //************************* Need help ********************************      
              InteractiveElementsOptions.APPEARANCE_ONLY        
              PDFJPEGQualityOptions.HIGH;  
              PdfMagnificationOptions.FIT_PAGE;  
              PageLayoutOptions.SINGLE_PAGE;  
              colorBitmapCompression = BitmapCompression.AUTO_COMPRESSION;
              colorBitmapCompression = BitmapCompression.zip;  
              colorBitmapQuality = CompressionQuality.MAXIMUM;  
              colorBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;  
              colorBitmapSamplingDPI = 300;  
      //************************* Need help ********************************      
      
      
          }  
      
      
          myDocument.exportFile(ExportFormat.INTERACTIVE_PDF, new File(myFileNamePDF_Web));  
      } else {  
          alert("Save your file before continuing");  
      }  
      

       

       

      Screenshot:

       

      pdf.png

       

      Please help friend very urgent process

       

      Thanks in Advance.