this.saveAsText Adobe Reader button

General information

I use DC of Acrobat Reader and Adobe Acrobat Pro XI on Windows 7.

The problem

I have a form with several fields of text adobe. I want to add a button to the form that export field data to a .txt file. To this end, I placed this code in a Javascript file level to the path ' C:\Program Files (x 86) \Adobe\Acrobat 2015\Reader\Javascripts Reader:

var exportTrial = app.trustedFunction(function(){
  app.beginPriv();
  this.exportAsText();
  app.endPriv();
});

I added a button to my form and set the action 'Run A JavaScript' with

exportTrial();

as the code.

I extended rights (I think) using file > save as other > Reader Extended PDF > activate tools plus (includes filling out form and save).

When the form is opened in Adobe Reader, the button is visible, but when it is pushed, the console displays the following error message:

NotAllowedError: Security settings prevent access to this property or method.
Doc.exportAsText:3:Field Button:Mouse Up

If I understand it, the code I have pop is a "save under" type dialog box for the user to choose where to place the output file. I'll eventually use cPath argument to skip this step, but I need to get the basics working first.

If anyone can see a step I missed in this process, or if you can shed light on the permission issues that I may have, I would be grateful.

To use this method in the reader a special right to form must be applied to the

file and it cannot be done with Acrobat but with one of the LiveCycle

Server applications, which are extremely expensive.

Tuesday, July 5, 2016 23:08, zacht17160615, [email protected]>

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • It is better to buy a MacBook Pro 2008? She asks $450

    HHave a chance to buy a late 2008 MacBook Pro is useful she wants $450.

  • Can I change the parent on my xbox account?

    I'm only 17, will be 18 in August.  Well, my brother is set up as an adult on my Xbox account, and I want him removed and replaced by someone that I hope more.  My brother and I do not have blind eyes these last time, as well to the point where, earl

  • Wireless, but not wired...

    Hi, I just plugged my new Linksys WRT610n and configure settings wireless thanks to the manual installation. I tried using the disk as it insisted on the fact, but he told me the router is not connected. This disturbs me because I managed to connect

  • Print spooler continues to stop in a few seconds

    For weeks now, I could not print directly from my laptop because for some reason any the print spooler service keeps shutting off after manally activate the process. Since the passage of Vista Premium to Win 7 Ultimate every time I try to print, I ge

  • update of error80073712 help anddt000 problems?

    can not get my windows 7 update 2 including error80073712 and error dt000 help...