ExportAsText NotAllowedError on Adobe Reader

hi,
I have a big problem:
I developed a pdf form using Adobe Acrobat XI Pro.
On a button, i added a call to a privileged function. The js file is under the javascript folder on C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts and also under the reader: C:\Program Files (x86)\Adobe\Reader 9.0\Reader\Javascripts 
The function uses this.exportAsText(false, null,strfileName).
Everything goes well while using the acrobat Pro. The problem began while using the Acrobat Reader. I got "NotAllowedError: Security settings prevent access to this property or method".
I tried to save my Acrobat from as a "Reader Extended PDF" but this didn't help.
I also tried to use this.exportAsText() without supplying cPath because i didn't understand from the APi guide if c:\temp is a save path,
but no dialog was popup to select the path and the error still appear. is this function should works at the adobe  reader at all? i also tried it on Adobe Reader XI but got the same error.
my function is:
myTrustedMenu = app.trustedFunction( function( name )
app.beginPriv();
var rightNow = new Date();
docname = this.documentFileName;
docname = docname.replace(".pdf", "");
var msRightNow = rightNow.getTime();
var strfileName = "\\d\\temp\\"
strfileName  = strfileName  + msRightNow.toString()+ ".txt";
app.alert(strfileName);
try{
     this.exportAsText({cPath: strfileName });
     //this.exportAsText();
catch(e)
  app.alert( e);
app.endPriv();
any help?
Thanks Riki

Hi Brend,
By "forms rights" you mean: file -> Save As other -> Reader Extended PDF -> Enable More Tools (includes form fill-in & save...)?
i so, i already tried it but still get the NotAllowedError.
Thanks Riki

Similar Messages

  • How to fix "NotAllowedError" with the mailForm method (javascript) in adobe reader 9.3?

    Hi! I want to know if it exist a way to use the mailForm method (this is javascript) in adobe reader 9.3?
    Or, are there any equivalent method? I want to send by email a FDF with my PDF.
    When I run my javascript, I got the following error: "NotAllowedError: Security settings prevent access to this property or method.
    Doc.mailForm:55:Field FI_ENVOYER:Mouse Up ".
    (Here, FI_ENVOYER is the name of my button).
    Tanks for the help!

    My document have this rights:
    Protection method:                              None
    May be open in:                                  Every version of Acrobat
    Print:                                                 Allowed
    Assemble the document:                    Unauthorized
    Copy of content:                                 Allowed
    Copy of content for accessibility:         Allowed
    Extract pages:                                   Allowed
    Comments:                                       Allowed
    Filing form fields:                               Allowed
    Affixing signature:                              Allowed
    Creating pages models:                     Unauthorized
    Is "Creating pages models" or "Assemble the document" can prevent the use of the mailForm method?
    I know that the mailForm requires privileges, but how can I allow these two rights who are unhauthorized?
    Is there something else I can do to be able to use the method "mailForm" without having the "NotAllowedError"?
    Tanks

  • How to use mailForm methode (javascript) in adobe reader 9.3?

    Hi! I want to know if it exist a way to use the mailForm method (this is javascript) in adobe reader 9.3?
    Or, are there any equivalent method? I want to send by email a FDF with my PDF.
    When I run my javascript, I got the following error: "NotAllowedError: Security settings prevent access to this property or method.
    Doc.mailForm:55:Field FI_ENVOYER:Mouse Up ".
    (Here, FI_ENVOYER is the name of my button).
    Tanks for the help!

    My document have this rights:
    Protection method:                              None
    May be open in:                                  Every version of Acrobat
    Print:                                                 Allowed
    Assemble the document:                    Unauthorized
    Copy of content:                                 Allowed
    Copy of content for accessibility:         Allowed
    Extract pages:                                   Allowed
    Comments:                                       Allowed
    Filing form fields:                               Allowed
    Affixing signature:                              Allowed
    Creating pages models:                     Unauthorized
    Is "Creating pages models" or "Assemble the document" can prevent the use of the mailForm method?
    I know that the mailForm requires privileges, but how can I allow these two rights who are unhauthorized?
    Is there something else I can do to be able to use the method "mailForm" without having the "NotAllowedError"?
    Tanks

  • I am filling out a form that requires me to put a passport photo using Adobe Reader.

    I am filling out a form that requires me to put a passport photo using Adobe Reader.
    However, when I click on the square to insert the photo, a screen pops up telling me to "select a PDF file and import it as an image" and just an "OK" button to press.
    When running the debugger, I get NotAllowedError: Security settings prevent access to this property or method. Field.buttonImportIcon:6:Field Click here to add a photo:Mouse Up. Any way around it? Below is the problem I'm talking about.

    Thanks for your reply.
    I've converted  photos into pdf format and it still won't allow me to insert the photo. I wouldn't know whether it'd be too large or small since I cannot insert it in the first place.
    "Warning: Javascript Windows: Select the PDF file to import this button as an image" is the message that keeps appearing. I can't seem to find anything related to this.

  • Print dialog slow to bring up and work with in Adobe Reader XI

    Hi,
    Since I upgraded Adobe Reader from version 9 to version 11, everyone is complaining about an extreme slow response from the print dialog box to bring up, but to work with it (mostly change printer and browse advanced properties) as well. It may takes at least 6 to 14 seconds to respond some times...
    I did not uninstall the previous version before installing the new one. Once I noticed the problem, I used the Adobe Cleaner Tool, and also manually removed the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader and the Adobe Reader folders in Program Files. I restarted the server, then I installed version XI one more time, and restarted again. Unfortunatly, still experiencing same problem...
    Adobe Reader is installed on Windows 2003 R2 Terminal servers, on which every users are logging using RDP or ICA protocol. The printers are connected on their profiles from a print server via GPO.
    Any suggestions ?
    Thanks in advance.
    Eric

    I believe this is covered in the Acrobat JS API Referecne saveAs entry. Follow the link for safe path.
    Safe path
    Acrobat 6.0 introduced the concept of a safe path for JavaScript methods that write data to the local hard drive based on a path passed to it by one of its parameters.
    A path cannot point to a system critical folder, for example a root, windows or system directory. A path is also subject to other unspecified tests.
    For many methods, the file name must have an extension appropriate to the type of data that is to be saved. Some methods may have a no-overwrite restriction. These additional restrictions are noted in the documentation.
    Generally, when a path is judged to be not safe, a NotAllowedError exception is thrown (see Error object) and the method fails.

  • Doc.setPageBoxes in Adobe Reader X

    Hello,
    I get the "NotAllowedError" when I try to run the setPageBoxes method in Adobe Reader X. In Acrobat 9 Pro Extended the function works fine.
    Here's the things I've tried so far:
    - running "Extend features for Adobe Reader"
    - app.trustedFunction in a separate .js file: this works for example with the method "app.launchURL" but not with "setPageBoxes"
    Any suggestions on how to fix this? Or is it even possible to resize the page in Reader?
    Thanks for the advice,
    Tuomo

    No, it is not allowed in Reader, as indicated in the documentation by the X in the last column of the quick bar.

  • Adobe Reader X: TrustedFunction SaveAs

    Hello
    I installed the new Adobe Reader X, and placed my TrustedFunction in the folder:
    C:\Program Files\Adobe\Reader 10.0\Reader\Javascripts
    When i test it, i always get the following error:
    Error in savePdfFile(); NotAllowedError: Secutiry settings prevent access to this property or method.
    i tried some settings in Adobe Reader X (like privileged locations) but nothing worked.
    TrustedSaveAsPdf.js
    trustedSaveAsPDF = app.trustedFunction(
      function (path){
            var retVal = "";
            app.beginPriv();
            retVal = event.target.saveAs(path);
            app.endPriv();
            return retVal;
    My Call:
    try {
       var retVal1 = trustedSaveAsPDF(<FILEPATH>);
    } catch (e) {
       app.alert("Error in savePdfFile(); " + e);

    Adobe Reader X runs in protected mode.
    http://learn.adobe.com/wiki/display/security/Protected+Mode+FAQ
    "Do plug-ins have read and write permissions to things like config files that maybe stored on the user's system?
    Plug-ins will not be able to write log files to non-whitelisted locations. They can continue to write logs to the Temp directory (as returned by GetTempPath() Windows API or equivalent Acrobat API). Another white-listed location is Adobe Reader's own appdata area."
    You can write out silently only to the whitelisted locations. The other alternative is to throw a save as dialog for user to select the location and save.

  • Due to my laptop screen failing i have to return to facory settings, can i reinstall adobe reader and adobe air afterwards?

    Due to my laptop screen failing I have to return it to factory settings, can I reinstall adobe reader and air afterwards?

    I don't see why not. Do you foresee a special difficulty?

  • Delete file from adobe reader?

    hi guys..i want delete file from adobe reader after download from email. unfortunately i cant see any delete icon in my file. Any ways to delete it?

    Check out the new and FREE 'AIR Browser' File Manager in appworld. You can use it to create/rename/delete folders and sub-folders, it can also copy, cut, paste and delete files.
    Jerome
    If a post was helpful, please click the kudos star button below it.
    If a post solved the problem you raised in your thread, click on 'Accept as Solution'.

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • How can I print just a part of the page and not the full page with Adobe Reader v 10.1.2?

    how can I print just a part of the page and not the full page with Adobe Reader v 10.1.2? I need to print a engineering print with lot of information but information is too small in letter size and I don't have a plotter.

    Two ways to print a portion of a page: zooming or using the Snapshot Tool.
    ZOOMING:
    Zoom into the area you want to print.
    Click the Print icon.
    Under "Pages to Print", make sure "Current view" is selected under "More options" (you may need to click "More options" to open it).
    If you aren't satisfied with the preview, try clicking "Fit" under the Size button.
    SNAPSHOT
    Choose Edit > Take A Snapshot.
    Drag a rectangle around the area you want to print. 
    Click the Print icon.
    Under "Pages to Print", make sure that "Selected Graphic" is selected under "More options".
    To enlarge the snapshot to fit the sheet of paper, choose "Fit" under the Size button.
    Hope this helps!

  • Email pdf to iPad - is there a way to open multiple pdfs at one time without having to hold each individually and open with adobe reader?

    I have a large number of pdf files to send to an iPad and it is taking forever to hold down each one and then choose to open with adobe reader.  Just wondering if there is a way to select all from the email to do the same action?

    Not that i know of but an alternate would be to use something like dropbox instead of mail. Their app works very well.

  • Why can't i download adobe reader  on my windows vista. Error message is invalid key

    I can not download Adobe reader. The installation begins, but then I get the message that the key is invalid. I don't know what means or how to correct it. How can I get a vaid key.

    That is a problem caused by Microsoft or one of their recent updates.  Here is the solution
    in the Windows Explorer address bar type %APPDATA%
    on the right-hand side double-click on the Microsoft folder
    now look for a folder named Crypto; delete it, or rename it to something like Crypto-old
    If you need more detailed help, tell us your Windows version.

  • When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It

    When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It was working great for the first week that I used it, but now it doesn't give me the converting option.  I am very frustrated as I have done nothing to change anything, and I was thinking this was so great...now I am just pulling out my hair and do not have the option of calling anyone since no phone numbers are listed. I am VERY busy and do not have time to sit and wait over a half an hour to "chat", which I tried to do yesterday.  All I want to do is very simply, convert pdfs to Word.  I have paid for this and am not getting any help. I am not very savvy when it comes to Adobe this program and Adobe that program...I feel I am being scammed as I do not get simple answers for something that appeared was going to be simple. You can't even call customer service to talk to someone live to help walk you through. 

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • Can I install Adobe Reader to a drive other than the C: drive?

    Can I install Adobe Reader to a drive other than the C: drive?

    Hello there,
    Welcome to Adobe Community. Yes it can be installed on a different drive. Though some of the files installed by it will still be installed on C: drive.
    When you run the installer, use 'Change destination folder' at the bottom of the panel
    If you already have Adobe Reader installed on the C: drive, you must uninstall it before installing a new version on a different location.
    Thanks!

Maybe you are looking for

  • Unable to check-in/out document on my Workspace

    I am a workspace coordinator/owner. I uploaded a document to my workspace. I have no ability to check-out/in the document. The menu options are grayed out. it is not clear where we are supposed to report issues - is this the correct forum?

  • I cannot update iTunes.

    I cannot update iTunes.  On Windows 7 IE 10.  I get message "The feature you are trying to use is on a network resource that is unavailable.  Enter an alternate path to a folder containing the installation package iTunes64.msi

  • Printer sends extra blank pages

    I have an HP all in one Photosmart C7280.  Recently, the printer started sending a blank page after ever printed page.  This happens whether I am sending a single page document or a multipage document.  It happens whether I am printing from any of my

  • Regarding a method used

    Hi, I was going through a tutorial. There they have used row.approve() for a row of a View object. I want to know what is the use of approve() method Is it a predefined or user defined method Thanks

  • HELP iPhone just stopped working

    i can ring my phone but nothing happens wont start or anything even long press the power button wont work.