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

Help with creating InDesign Export Presets …

Return to Member Forum

  • Author
    Posts
    • #114648
      gamouning
      Member

      Hi,

      I’m looking for assistance with creating a export presets that work with page ranges. For example, I wish to create an export preset named “A” that uses the following page range “1-8, 11-”. This preset does not export pages 9-10.

      Then setup preset named “B” for “pages 1-10-13-”. This preset does not export pages 11-12.

      BTW, I found a javascript that looks like it might assist with this process located on the following thread:

      https://graphicdesign.stackexchange.com/questions/18796/indesign-script-to-print-indd-into-pdf

      However, I did not have much luck with getting it to work.

      Thanks in advance! :-)

    • #114651

      Hi,

      your mentioned script does export a active document to a specified location. It doesn’t honor page ranges.

      It seems not possible, to save page ranges in a preset either (same with “view after export”). But you can set those values inside a script. From Adobes examples:

          
      //using the current PDF export settings.
          var myDocument = app.documents.item(0);
          with(app.pdfExportPreferences){
          //Enter the names of the pages you want to export in the following line.
          //Note that the page name is not necessarily the index of the page in the
          //document (e.g., the first page of a document whose page numbering starts
          //with page 21 will be "21", not 1).
          	pageRange = "1, 3-6, 7, 9-11, 12";
          }
          myDocument.exportFile(
      		ExportFormat.pdfType,
              File(Folder.desktop + "/ExportPageRangeAsPDF.pdf"),
              false
      	);
          //</fragment>
      
      

      best
      Kai

      • #114678
        gamouning
        Member

        Hi Kai,

        Thanks for this sharing this code. I am having success with the page range but no luck with selecting my Export preset. I tried using the following:

        var myPDFExportPreset = app.pdfExportPresets.item(“Monthly_Rat”)

        myDocument.exportFile(
        ExportFormat.pdfType,
        File(Folder.desktop + “/ExportPageRangeAsPDF.pdf”),
        true, myPDFExportPreset
        );

        Note: I know these preset settings do not work because the “Monthly_Rat” does not appear and the PDF that gets created does not contain the correct attributes when I few them via properties.

        Thanks in advance for any additional assistance you can provide.

        -Greg

Viewing 1 reply thread
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads