Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Script to Export PDF per Page?

Return to Member Forum

  • Author
    Posts
    • #85840
      Kathy Cote
      Member

      Hi,
      I have this script to export pdf. It works, it export pdf but I would like to export pdf per page and not all in one pdf.
      Is someone has already done? I don’t want to use a book to do it if possible.

      Thanks for you help ;-)

      My Code:

      var myDoc = app.activeDocument;
      var myFolderName = myDoc.filePath;
      var myDocumentName = myDoc.name;

      var myFilePath = “/Users/kcote/Desktop/PDF/“ + myDoc.name.slice (0, -5) + “.pdf”;
      var myFile = new File(myFilePath);

      //Do not open the PDF Export dialog box. Set “false” to “true” if you want the dialog box.
      myDoc.exportFile(ExportFormat.pdfType, myFile, false, “Press Quality“);

    • #85841
      Ari Singer
      Member
      var myDoc = app.activeDocument;
      var myFolderName = myDoc.filePath;
      var myDocumentName = myDoc.name;
      var myPages = myDoc.pages;
      for (i = 0; i < myPages.length; i++){
          var myPage = myPages[i];
          var myPageName = myPage.name;
          var myFilePath = "/Users/kcote/Desktop/PDF/" + myDoc.name.slice (0, -5) + "page " + myPageName + ".pdf";
          var myFile = new File(myFilePath);
          app.pdfExportPreferences.pageRange = myPageName;
          //Do not open the PDF Export dialog box. Set “false” to “true” if you want the dialog box.
          myDoc.exportFile(ExportFormat.pdfType, myFile, false, "Press Quality");
          }
      
    • #85842
      Kathy Cote
      Member

      oh you’re so nice !

      Thanks a lot!

    • #88106
      Bob Rubey
      Member

      A bit later perhaps, and the utility has been around for a quite a while, but it continues to work in CC 2015 (at least what I need it to do). https://creativepro.com/page-exporter-utility-peu-5-script-updated-for-cs3.php

    • #88108

      I need to resize 200+ PDF pages in InDesign. is it possible to have a script written to do that and if so could you direct me how to have this done. Itext frames that are 7.1184 x 10.0342 and I need them reduced 75%.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
Forum Ads