2 Replies Latest reply on May 7, 2010 1:41 AM by Ajv55

    Problems using group.exportFile

    Ajv55

      I'm trying to export all the individual groups of a Page to individual PDF's. So far I've only managed to print out all the groups on the page to a single pdf.

       

      Here's my code:

       

      //A4 -sized Page has 3 individual groups
      
      var grp = app.activeDocument.groups.item(0);
      
      grp.exportFile(ExportFormat.pdfType, (new File("group.pdf")), false,
      app.pdfExportPresets[0]);
      
      
      //Result: group.pdf is a A4 sized document with all the 3 groups on it.
      //Same result with grp = app.activeDocument.groups.item(1) etc...
      

       

      What I need is 3 pdf's, all in different sizes and each containing only one group. Is this possible?