2 Replies Latest reply on Feb 15, 2013 11:46 PM by try67

    Code to save the PDF as an excel spreadsheet?

    scifiguy20904 Level 1

      I've got the following code - which allows me to save a file based on the value in a field:

       

      myTrustedSaveAs = app.trustedFunction( function ( doc, path )
      {
      app.beginPriv();
      doc.saveAs({
      cPath: path,
      bCopy: true,
      bPromptToOverwrite: true
      });
      app.endPriv();
      });

      myTrustedOpenDoc = app.trustedFunction( function ( path )
      {
      app.beginPriv();
      app.openDoc({
      cPath: path
      });
      app.endPriv();
      });

       

      I'd like to be able to save both a PDF and a a spreadsheet based on the same pathname.   What's the code to use to save the file as an excel spreadsheet?

       

      I'm using Adobe X pro.