NotAllowedError:  Security settings prevent...

Hello I'm just starting to work with acrobat and javascript. Testing somethings out I created a script : this.importTextData and I get the error below. Any ideas? Thank you!
NotAllowedError: Security settings prevent access to this property or method.
Doc.importTextData:2:Batch undefined:Exec

Where did you place the code and what is the exact code that you used? To invoke a method you need to include parentheses:
this.importTextData();
Without any parameters there should not be any security warning if used with Acrobat. If you're trying to use it with Reader it can't work unless the form has been Reader-enabled with LiveCycle Reader Extensions and the corresponding usage right included.

Similar Messages

  • Web Service posting via SOAP.request - Security settings prevent access...

    I'm trying to call a web service via the SOAP.request object in javascript embedded into my Interactive Form.  I've successfully done this with SAP NetWeaver 7.0 trial version however now I'm having this issue on a production setup.  The PDF generates fine and I can fill out the form and everything.  I checked the properties of both PDF documents (one that works from the trial and one that doesn't from the prod box) and they are the same, expect the one that works is PDF Version 1.6, and the one that doesn't is PDF Version 1.7.
    Here's the client-side error:
    Acrobat EScript Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
    Acrobat Multimedia Version 8.0
    Acrobat SOAP 8.0
    NotAllowedError: Security settings prevent access to this property or method.
    SOAP.request:31:XFA:data[0]:mainform[0]:btnRelease[0]:click
    Here's the snippet of JavaScript code:
    var response = SOAP.request();
    Here are the security properties of the malfunctioning PDF:
    Security Method: No Security
    Can be Opened By: All versions of Acrobat
    Printing: Allowed
    Document Assembly: Not Allowed
    Content Copying: Allowed
    Content Copying for Accessibility: Allowed
    Page Extraction: Not Allowed
    Commenting: Allowed
    Filling of form fields: Allowed
    Signing: Allowed
    Creation of Template Pages: Allowed
    How do I determine what the culprit is?

    Michael,
    PDF Version 1.6 means Adobe Reader 7.0.x family and PDF version 1.7 means Adobe Reader 8.0.x or 9.0.x if I am not wrong.
    Also if you check LiveCycle Designer Help (Using LiveCycle Designer ES > Working with Data Sources > About data sources > Working with data connections) it clearly says that with LiveCycle Designer 8.0 secured web services are not supported and there are additional security settings for Reader 8.0 onwards, that may be causing the issue.
    Chintan

  • Error: security settings prevent acces to this property or method

    Hello everybody,
    I'm facing an error when i open up a portfolio which i've performed some javascript. This script has the function to position over a specific document
    contained in portfolio and  when i open up it through Adobe Reader, it shows me the following error:
    NotAllowedError: Security settings prevent access to this property or method. Collecition.initialDoc:6:Document-level:onOpen
    I checked reader properties in preferences and javascript is allowed.
    How can i resolve this issue?
    Thanks.

    Did you read the documentation of the  property or method?

  • NotAllowedError: Security settings for template.spawn()

    I'm creating a PDF document that heavily uses the template.spawn() method. My understanding is that the spawn() method is allowed whenever the PDF document is given "Reader Rights" in Acrobat. I am using Acrobat X (and Acrobat Forms, not LiveCycle) and have saved my PDF with Reader Extended Rights. When I load the file in Reader 11 and click the button that spawns pages, I get the javascript error: NotAllowedError: Security settings prevent access to this property or method. Am I doing something wrong or have I misunderstood the notation in the Adobe API that says .spawn() is allowed with Reader Form Rights?
    Thanks,
    John

    Hi John,
    All the changes from version to version sure make things confusing.  When Adobe Reader XI was released it came with some new features that DO NOT require Rights and those include the ability to Spawn Templates as well as Fill and Save data in PDF forms ( not LiveCycle though, just to add more confusion).  So first, you don't need to add Rights to your PDF at all unless you require some other Right that is not availalbe free in Adobe Reader XI.  Given that, ALL of your users will need to use Adobe Reader XI or Acrobat since earlier versions of Reader do not include the Spawn Templates without Rights.  And, if you want Spawn Templates to work in an earlier version of Adobe Reader, that is one of those that required the expensive LiveCycle Reader Extension server product, not one built into Acrobat.
    When you do apply rights to a PDF those Rights block all functionality not explicitly granted by the Right.  Since Spawn is there already your applying Rights negates it- kinda wierd but pretty sure that's why you get the error.
    The Spawn Templates is such a great new addition to Reader though, isn't it?
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.pdfscripting.com
    www.windjack.com

  • Security Settings prevent the usage of this method :-(

    hi,
    since i began using adobe LiveCycle products (well one month by now), mainly the LC Designer, i'm getting the same error by using certain methods (here i have to free translate out of the german):
    "NotAllowedError: security settings prevent the usage of this property or method. App.trustedFunction:14:XFA:all[0].sf_tab[0]:initialize
    is there someone, who can explain, what's do be done to get rid of it?
    thanks,
    valerio

    It looks like your trying to run a function defined at the document level (ie: from within an event on a field) but a trusted function must be defined at the folder level (ie: in a .js file in the Acrobat /JavaScripts/ folder). That how trusted functions get their priveledges, when Acrobat is started, it evaluates the JavaScript in the .js files, sees that the function is marked as trusted and gives it the special priveledges it needs for when it is called. Here's an example of script you could put in a .js file:
    saveFunc = app.trustedFunction(function (path) {
    app.beginPriv();
    try {
    event.target.saveAs(path);
    } catch (err) {
    console.println("Error: " + err);
    app.endPriv();
    Then in your form you would simply call saveFunc().
    Another thing I just noticed, I don't believe you will be able to use the Document.newPage() method from an XFA form (form from Designer) whether you run it from a trusted function or not. Acrobat is blocked from being able to make changes like this to an XFA form, because the underlying structure of an XFA form and an AcroForm is so different that even if you could make it work you wouldn't get the results you'd expect.
    Chris
    Adobe Enterprise Developer Support

  • Unable to rotate pdf with script(not allowed error security settings prevent  error)

    I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
    nStart = 0;
    nEnd = this.numPages - 1;
    nRotate = 90;
    try
    if (this.numPages > 0)
               this.setPageRotations(nStart , nEnd , nRotate)
    catch(e)
    app.alert("Processing error: "+e)
    But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.

    I have got it working usig by installing a script on the local machine. Thanks

  • SaveAs - Security settings prevent access to this property or method.

    Hi,
    This question seems to have been dealt with in this forum on a few occasions but I am still have trouble with it:
    I have written a script to add a footer containing the file name to a PDF and then save the PDF:
    app.addMenuItem( { cName: "newdoc", cUser: "Add Footer", cParent:
    "File", cExec: "AddFooter()", nPos: 0 } );
    function AddFooter()
    for (var p = 0; p < this.numPages; p++)
    var fd = this.addField("Date", "text", p, [10,5, 300,28]);
    fd.textSize=10;
    fd.value = this.path  ;
    var SaveFile = app.trustedFunction(function()
      app.beginPriv();
      this.saveAs(this.path);
      app.endPriv();
    When I try to execute this script I receive an error:
    Security settings prevent access to this property or method.
    Any assistance would be much appreciated.
    eddiec :-)

    At which line do you get the error message? Do you use Adobe Acrobat?

  • Page rotate script not working(not allowed error security settings prevent access to this property)

    HI,
    I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
    nStart = 0;
    nEnd = this.numPages - 1;
    nRotate = 90;
    try
    if (this.numPages > 0)
               this.setPageRotations(nStart , nEnd , nRotate)
    catch(e)
    app.alert("Processing error: "+e)
    But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.

    OK, so here's what you do:
    - Create a new file in a plain-text editor (I recommend Notepad++), and paste this code into it:
    safeExecMenuItem = app.trustPropagatorFunction(function(code){
        app.beginPriv();
        app.execMenuItem(code);
        app.endPriv();
    mySafeExecMenuItem = app.trustedFunction(function(code){
        app.beginPriv();
        safeExecMenuItem(code);
        app.endPriv();
    Close Reader if it was open and then save this file as "MyScripts.js" and place it in the following directory (this is for Windows):
    C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Javascripts
    If you want it to work in Acrobat as well place the file also under:
    C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts
    Now to rotate the pages clockwise attach this code to your button (in Acrobat, of course):
    mySafeExecMenuItem("RotateCW");
    And to rotate them counter-clockwise, use this code:
    mySafeExecMenuItem("RotateCCW");
    Open your file in Reader and the buttons should rotate the pages when clicked...

  • Cannot change date and time settings, popup "These files can't be opened: Your internet security settings prevented..."

    When I try to change my date and time settings I get a Windows Security popup that reads: "These files can't be opened.  Your Internet security settings prevented one or more files from being opened. C:\Windows\system32\rundll32.exe"
    I have Windows 7 64 bit.  I also have McAfee SecurityCenter installed.  I have tried turning off my firewall temporarily, but the problem persists.  I am not sure if it is some type of virus.  If anyone could give me some information
    as to what could be causing this I would appreciate it.  Thanks in advance.

    Hi,
    Perhaps, this issue is caused by a sign of corruption.
    Please try to use sfc/scannow to check the System Files.
    Also, You may refer to the following link.
    http://www.sevenforums.com/general-discussion/71526-cant-change-date-time-2.html 
    Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Security settings: prevent "save as..." !?

    Hello there, I am using Acrobat 9 standard and would like to know how I can manage to set up security settings of a document in such a way that the "save as..." menue-entry will be disabled.
    I can manage to prevent printing and saving the same document again - no problem. But I need to make sure that the reader of a document does not save it under a different name.
    How can this be done?
    Thanks for any advice.
    Wolfgang Armbruster

    We _are_ using Acrobat Reader to display these files within an Intranet. If you open such a file as an embedded PDF in Firefox you will see a buttonbar at the top with icons to print and to save and so on.
    I do not have problems to make the print icon greyed out and unusable. But I need to do the same thing with the "save as" icon.
    And are you really saying this can not be done? Acrobat support told me before buying the software "this can be done"... though they will not tell me how... I need to clarify this in some forums...
    So I'm still hoping to get better advice...!?

  • New Security Settings Prevents Running Pgm From Local Directory?

    I am an occassional Linux software author among other things, and have recently installed Arch 2007.08 (Don't Panic). Today I compiled and built one of my programs only to discover that Arch doesn't allow me to run it from its build directory. The usual
    ./progname
    produce the error:
    bash: permission denied
    BUT, if I copy the same executable to /usr/local/bin, it runs happily from there.
    I am guessing this is some form of new security mechanism that has been introduced. Can anyone enlighten me as to what this is? Is there a way to defeat it?
    By the way, I have tried this on the simplest of programs, the proverbial "hello world", so I know that my software isn't attempting to access files that it doesn't have permissions for. This seems to be a system wide thing.
    Any and all insights most appreciated!
    Last edited by mac57 (2007-09-03 20:06:07)

    Thanks, will do! I hadn't even considered that, since this is an ext2 volume...

  • Security settings error

    Hi,
    I am using Adobe Acrobat 8.0 Professional in Mac OS 10.6
    I need to extract pages from current document and save in separate folder.
    I have a user defined menu item for splitting action(Menu item name:Split HighResPdf).
    if i use this.extractPages(1,1,"/Users/lw/Desktop/test.pdf");
    it shows following error
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.extractPages:27:Menu Split HighResPdf:Exec
    How can i solve this issue?
    Thanks in advance...

    Please repost in the Acrobat Scripting forum. Just for your info, I don't believe Acrobat 8 is 10.6 compatible. To be compatible you need at least 9.2.x
    Mike

  • Security Settings blocking data export to FDF file in Reader

    I created a form in Acrobat Pro that has fillable text fields, radio buttons, drop-downs etc. I created a button which executes a JavaScript method to export all field data to an FDF file. This works fine if the PDF is opened in Acrobat Pro, and the FDF opens fine in Reader. But when opening the file in Reader the JavaScript console tells me that the method is not allowed due to security settings for the document. When I check the security settings  for the document in Pro, it shows everything as "allowed". The same document when opened in Reader shows several permissions "not allowed". I am guessing that these restrictions are preventing the button from working. How do I remove these restrictions?

    There are no parameters for the method that define or allow overriding security. I may have to execute it through app.trustedFunction.
    Te following message shows up in the console when I attempt to export from Reader.
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.exportAsFDF:3:Field Button1:Mouse Up

  • Security settings won't let JavaScript even open a document?

    Yes, I know this question has been covered a hundred times or more in this forum.  I'm also very sorry for adding to the list of people who don't understand it, but…  Well, I don't understand it.
    I'm very familiar with JavaScript and ExtendScript.  I've got it enabled in my copy of Acrobat X Pro and can seem to execute simple commands in the JavaScript Debugger Console, like "3 + 4".  However, when I try to do something that seems trivial, like opening a document thusly:
    var document = app.openDoc("/Volumes/g/ ArtDept/Product Templates/ ProofCover/proof_cover.pdf");
    The debugger console gives me the error that has plagued so many thousands of Acrobat scripters:
    NotAllowedError: Security settings prevent access to this property or method.
    App.openDoc:1:Console undefined:Exec
    So, can anyone please explain to me, in plain English, what this error means and, more importantly, how I can bypass it.  I do not want to run a folder-level script, since, from what I've read, those are executed upon launching Acrobat.  Great for adding menu items to Acrobt, but not for what I need.  Instead, I want this code to be called from an InDesign script to automate a simple task in Acrobat.
    Can anyone please walk me through what I need to do to get this simple 'openDoc' task performed?  Or, at least, point me to a resource that can walk me through it?

    @Gilad D, you are a genius.
    I'm still relatively new to Macs and their file structure, so this one made me facepalm a bit.  It turns out that the filename I had going on ("/Volumes/g/ ArtDept/Product Templates/ ProofCover/proof_cover.pdf") was too much.  I had to remove the first level, making the result: ("/g/ ArtDept/Product Templates/ ProofCover/proof_cover.pdf").  When done this way, the script works perfectly.  I shall definitely remember that "this.path" property for future reference!
    In fact, it even works in the Javascript console.  In further fact, it even does so without the need for a folder-level script.  But that's not a concern at the moment.  The bottom line is that I have at least been able to get Acrobat to open a file, replace a page, then do a Save As command, then close the file.  Thanks for all of the help; I'm now off to write a new post to ask about my current problem, which is much more complicated.

  • Proxy security settings don't allow to download the iPhone updates

    My PC where I set up my iPhone is located at my office and the proxy security settings prevent my PC (any PC) to connect to the Apple servers for downloading any updates.
    One solution could be if I can get the addrees where I can go from my personal laptop and accesing internet from a totally different network.
    Another solution is moving my iPhone to my personal computer and then use my personal DSL internet connection.
    I will appreciate your help.

    Go to Start>Control Panel>Internet Options>Privacy (tab) There should be a bar & it might work if you make it lower. You could go to the advanced tab too & uncheck some of the security blocking things

Maybe you are looking for

  • IHDPro/MBCC Error: Unable to figure our your host.  Assuming Final Cut Pro.

    So I have just installed FCE 4 and am encountering error messages upon start up. The messages read as follows...Message 1: "IHDPro Error: Unable to figure our your host. Assuming Final Cut Pro" as well as Message 2: "MBCC Error: Unable to figure our

  • Connection Problem from Client ?

    I can connect to database for SYS and SYSTEM but not for any other USER using JDBC (Oracle (Thin driver)) Connection URL: jdbc:oracle:thin:@localhost:1521:xe USER Name: System Password:***** If I use other user then it give me problem. ERROR: ORA-010

  • Constructing a linear color gradient from a string

    I am using the following string value for a linear color gardient. String value = "from 0% 0% to 100% 0%, white, yellow, black 60%, red, green"; LinearGradient lg2 = LinearGradient.valueOf(value);I am expecting it to use the following list of color-s

  • Flash "Spinny" loader corrupted in FF in Windows with Flash player 10

    Everywhere else I have this on our site, it works fine. Here is where it is broken In a firefox browser (2, 3, 3.5) with flash player 10 in windows xp (flash player 9 looks fine) Everywhere else it looks fine.  I have attached the swf file & a screen

  • Passing a object from browser to server

    How can i pass a java object from browser to server, can anybody help me in knowing this? Rajesh.