2 Replies Latest reply on Sep 2, 2009 12:18 AM by gamesreviewer

    [JS] Export whole document as a snippet

    gamesreviewer

      Hi,

       

      I'm trying to export a whole document as a snippet.  The code works for a page item, i.e

       

      myPageItem.exportFile(ExportFormat.INDESIGN_SNIPPET

       

      but not for a document.  i.e

      , new File("/D/test/templates/working.inds"));

      myDoc.exportFile(ExportFormat.INDESIGN_SNIPPET

      ,

      new File("/D/test/templates/working.inds"));

       

      It errors with the specified object does not support the export format.

       

      I thought you could export a whole document as a snippet?

       

      Any Ideas?

       

      thanks

       

      Richard