13 Replies Latest reply on Aug 4, 2016 9:06 PM by sreekarthik.k@gmail.com

    Export PDF various sections

    Level 1

      I needs to export PDF via script. In my document have so many sections. How to do this.


      While export the PDF its to to custom



      I have copied my code


      var printpage =  '16-16.2,26-26.5,12-14'


      app.interactivePDFExportPreferences.pageRange = String (printpage);

      app.interactivePDFExportPreferences.exportReaderSpreads = false;

      pdfname = app.activeDocument.name.replace (".indd", "");

      app.activeDocument.exportFile(ExportFormat.INTERACTIVE_PDF, new File(app.activeDocument.filePath.fullName + "/" + pdfname +".pdf"),true);


      Its throw the below exception and all the pages get pDF