2 Replies Latest reply on Jan 5, 2009 7:29 AM by kentgbaker

    Creating a PS file from PDF, naming and destination help

    kentgbaker Level 1
      hello all,

      I have managed to cobble together a script that saves a .ps from a .pdf. It does work as is, but I am sure that there is a more elegant way to define the path (I want it to be the same directory as the original PDF) and to define the file name (I want it to use the origninal file without the .pdf in the name).

      here it is, hope this helps others as well

      XXX_DoSavePS = app.trustedFunction(function()
      {
      app.beginPriv();
      this.saveAs(this.path + "_reburn" + ".ps", "com.adobe.acrobat.ps");
      app.endPriv();
      }
      );

      Any thoughts are appreciated