6 Replies Latest reply on Jan 6, 2017 9:52 AM by George_Johnson

    Is it possible saving xfdf file in Reader ?

    cruzj89645772

      The script for saving xfdf file works fine in Pro but with Reader I get the error:

       

      RangeError: Invalid argument value.
      Doc.exportAsXFDF:20:Field Button3:Mouse Up

       

      The config.js file (for Reader):

       

      myTrustedReadFile = app.trustedFunction( function ( oArgs )
      {
      app.beginPriv();
      var rStream = util.readFileIntoStream(oArgs);
      var cFile = util.stringFromStream(rStream);
      app.endPriv();
      return cFile;
      });

      myTrustedExportXFDF = app.trustedFunction( function ( oArgs )
      {
      app.beginPriv();
      this.exportAsXFDF(true,true,null,oArgs)
      app.endPriv();
      return true;
      });

      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

      And myTrstedReadFile Works fine (in Pro and Reader)

       

      Thanks for your time.