7 Replies Latest reply on Feb 11, 2015 3:43 AM by Laubender

    [CS6] Export page created by Alternative Layout (InDesign CS6)

    Hoang_Huynh Level 1

      How can I export a page created by Alternative Layout in InDesign CS6? Or how can I get the name of the alternative layout that a page is in?

       

      I can usually export an InDesign page to JPEG using the document's exportFile method. Normally this works by setting pageString value of application's jpegExportPreferences to the name of the page I want to export.

       

      This normally works:

       

      // set export range to a custom range
      app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
      
      // set pageString to the name of the page I want to export, e.g. "3"
      app.jpegExportPreferences.pageString = page.name;
      
      // export page to jpg
      doc.exportFile(ExportFormat.jpg, filePath, false);
      

       

      The problem is, with pages created by Alternative Layout in CS6, there can be many pages with the same name of "3". ExportFile method now needs to know the "type" or layout name of a page to export it. Instead of using "3" as the pageString, I need to use something like "iPad H:3". (See picture below.) But I don't know any way to get the layout name of a page. Can you please help?

       

      layout-name.png