3 Replies Latest reply on Jun 29, 2015 9:20 AM by try67

    Simple SaveAs Example

    NetLib

      I am trying to get a simple SaveAs example to work.  I created a PageOpen JavaScript action to save the currently open document to c:\test\test1.pdf (which does not currently exist).

       

      I have tried this (from documentation example):

        var aDocs = app.activeDocs;

        var myForm = aDocs[0];

        myForm.saveAs("c:\test\test1.pdf");

       

      I also tried this from a forum example:

        app.activeDocument.saveAs("c:\test\test1.pdf");

       

      In both cases there is no error message, but c:\test\test1.pdf is not created, What am I doing wrong?

       

      I am using Acrobat Professional 9 on Windows 7 x64.

       

      Thanks.