NotAllowedError

Hello,
I'm using the net.http.request in a javascript file in the javascripts folder of the Acrobat X pro and Acrobat reader but it does not work on reader. On Acrobat X pro there are no problems, how do I manage to make it work on reader?
Thank you

Yes I read about it, but evrything I read tells me to use LiveCycle reader extension to make that, but I do not want this program I want to make frm right with acrobat X Pro.
is it possible?
And if it is, how do I manage to do that?

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

  • JavaScript works in Pro but not Reader - NotAllowedError

    I have created a web form in Adobe XI Pro. We have some progress bars at the top with number of fields completed type of thing. All of my JavaScript works perfectly in Acrobat. I save it like so Save As Other > Reader Extended PDF > Enable More Tools. Again everything works in Acrobat. When I open the PDF in Reader the JavaScript won't work. My forms still fill I can save and such, but no JavaScript progress bars. We create this form frequently and it has always worked. I assume it is some sort of new update to Adobe XI Pro. Here is the error I receive in the debugger:
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.title:27:Document-Level:Progress
    I was thinking it might be related to the security settings these are the only 2 things not allowed.
    Document Assembly : Not Allowed
    Page Extraction: Not Allowed
    But as I read through the forums I am not sure that is actually the problem. Any ideas?
    Thanks in advance,
    Jen

    //Turn off the warnings when JavaScript is enabled
    this.getField("JavascriptWarning").display = display.visible;
    this.getField("ProgressTracking").display = display.visible;
    //Required fields warning
    this.alerted = false;
    //Define all required fields
    this.first = this.getField("FirstName");
    this.family = this.getField("FamilyName");
    this.addressOne = this.getField("AddressOne");
    this.addressTwo = this.getField("AddressTwo");
    this.postcodeOne = this.getField("Postcode-1");
    this.daytimeTelephone = this.getField("DaytimeTelephone");
    this.payrollReference = this.getField("PayrollReference");
    //---P46
    this.nationalOne = this.getField("NationalInsurance1");
    this.nationalTwo = this.getField("NationalInsurance2");
    this.nationalThree = this.getField("NationalInsurance3");
    this.nationalFour = this.getField("NationalInsurance4");
    this.nationalFive = this.getField("NationalInsurance5");
    this.nationalSix = this.getField("NationalInsurance6");
    this.nationalSeven = this.getField("NationalInsurance7");
    this.nationalEight = this.getField("NationalInsurance8");
    this.nationalNine = this.getField("NationalInsurance9");
    this.title = this.getField("Title");
    this.surnameOne = this.getField("SurnameFamilyName-1");
    this.firstOne = this.getField("FirstorGivenName-1");
    this.dobOne = this.getField("DOB-1");
    this.dobTwo = this.getField("DOB-2");
    this.dobThree = this.getField("DOB-3");
    this.dobFour = this.getField("DOB-4");
    this.dobFive = this.getField("DOB-5");
    this.dobSix = this.getField("DOB-6");
    this.dobSeven = this.getField("DOB-7");
    this.dobEight = this.getField("DOB-8");
    this.houseOne = this.getField("HouseOrFlatNumber-1");
    this.restAddressOne = this.getField("RestOfAddress-1");
    this.dateOne = this.getField("Date-1");
    //---Leidos Employee Bank Details For Payroll
    this.employeeNumber = this.getField("EmployeeNumber");
    this.bankName = this.getField("BankName");
    this.bankAddressOne = this.getField("BankAddressOne");
    this.bankAddressTwo = this.getField("BankAddressTwo");
    this.bankPostcodeOne = this.getField("BankPostcode-1");
    this.bankSortCodeOne = this.getField("BankSortCode-1");
    this.bankAccountNumber = this.getField("BankAccountNumber-1");
    this.effectiveDate = this.getField("EffectiveDate");
    //---Baseline Personnel Security Standard
    this.birthPlace = this.getField("PlaceOfBirth");
    this.birthNationality = this.getField("NationalityAtBirth");
    this.presentNationality = this.getField("PresentNationality");
    //Load them all into an array
    this.REQUIRED = [first, family, addressOne, addressTwo, postcodeOne, daytimeTelephone, payrollReference, nationalOne, nationalTwo, nationalThree, nationalFour, nationalFive, nationalSix, nationalSeven, nationalEight, nationalNine, title, surnameOne, firstOne, dobOne, dobTwo, dobThree, dobFour, dobFive, dobSix, dobSeven, dobEight, houseOne, restAddressOne, dateOne, employeeNumber, bankName, bankAddressOne, bankAddressTwo, bankPostcodeOne, bankSortCodeOne, bankAccountNumber, effectiveDate, birthPlace, birthNationality, presentNationality ];
    //Define the colors to be used
    this.gray = ["RGB", 0.208, 0.208, 0.208];
    this.amber = ["RGB", 0.992, 0.905, 0];
    this.red = ["RGB", 0.937, 0.282, 0.212];
    this.green = ["RGB", 0.431, 0.710, 0.016];
    //Call the document-level functions to update the Checklist
    updateAll();
    function updateAll()
      Dupdate();
      EOWupdate();
      LNHupdate();
      EBDupdate();
      BPSSupdate();
    //Updates the P46 entry.
    /*----------------NEW-------------------*/
    function Dupdate()
      this.DfieldCount = 0
      this.DnumComplete = 0;
      //Get all required fields in the form ----------- ecFirst, ecNationalOne
      var postcodeOne = this.getField("Postcode-1");
      var nationalOne = this.getField("NationalInsurance1");
      var nationalTwo = this.getField("NationalInsurance2");
      var nationalThree = this.getField("NationalInsurance3");
      var nationalFour = this.getField("NationalInsurance4");
      var nationalFive = this.getField("NationalInsurance5");
      var nationalSix = this.getField("NationalInsurance6");
      var nationalSeven = this.getField("NationalInsurance7");
      var nationalEight = this.getField("NationalInsurance8");
      var nationalNine = this.getField("NationalInsurance9");
      var title = this.getField("Title");
      var surnameOne = this.getField("SurnameFamilyName-1");
      var firstOne = this.getField("FirstorGivenName-1");
      var dobOne = this.getField("DOB-1");
      var dobTwo = this.getField("DOB-2");
      var dobThree = this.getField("DOB-3");
      var dobFour = this.getField("DOB-4");
      var dobFive = this.getField("DOB-5");
      var dobSix = this.getField("DOB-6");
      var dobSeven = this.getField("DOB-7");
      var dobEight = this.getField("DOB-8");
      var houseOne = this.getField("HouseOrFlatNumber-1");
      var restAddressOne = this.getField("RestOfAddress-1");
      var dateOne = this.getField("Date-1");
      var dFields = [postcodeOne, nationalOne, nationalTwo, nationalThree, nationalFour, nationalFive, nationalSix, nationalSeven, nationalEight, nationalNine, title, surnameOne, firstOne, dobOne, dobTwo, dobThree, dobFour, dobFive, dobSix, dobSeven, dobEight, houseOne, restAddressOne, dateOne];
      //Check required fields for completion and visibility
      for (var i in dFields)
      if (dFields[i].display == display.visible)
      this.DfieldCount++;
      if (dFields[i].value != "" && dFields[i].name != "ReceiveCopy")
      this.DnumComplete++;
      if(dFields[i].name == "ReceiveCopy")
      if(dFields[i].value == "Yes" || dFields[i].value == "No")
      this.DnumComplete++;
      var t = this.getField("PFortySix");
      if (DnumComplete == 0)
      t.fillColor = this.gray;
      this.getField("DProgress").userName = "";
      else if (DnumComplete < DfieldCount)
      t.fillColor = this.amber;
      this.getField("DProgress").userName = "";
      else
      t.fillColor = this.green;
      this.getField("DProgress").value = this.DnumComplete + "/" + this.DfieldCount;
      if (this.DnumComplete == this.DfieldCount) this.getField("DProgress").userName = "Done";
    //Updates the Leidos Expression of Wish entry.
    /*----------------NEW-------------------*/
    function EOWupdate()
      this.EOWfieldCount = 0
      this.EOWnumComplete = 0;
      //Get all required fields in the form ----------- ecFirst, ecFamily, ecAddressOne, ecAddressTwo, ecPostcodeOne, ecNationalOne
      var first = this.getField("FirstName");
      var family = this.getField("FamilyName");
      var addressOne = this.getField("AddressOne");
      var addressTwo = this.getField("AddressTwo");
      var postcodeOne = this.getField("Postcode-1");
      var daytimeTelephone = this.getField("DaytimeTelephone");
      var payrollReference = this.getField("PayrollReference");
      var nationalOne = this.getField("NationalInsurance1");
      var nationalTwo = this.getField("NationalInsurance2");
      var nationalThree = this.getField("NationalInsurance3");
      var nationalFour = this.getField("NationalInsurance4");
      var nationalFive = this.getField("NationalInsurance5");
      var nationalSix = this.getField("NationalInsurance6");
      var nationalSeven = this.getField("NationalInsurance7");
      var nationalEight = this.getField("NationalInsurance8");
      var nationalNine = this.getField("NationalInsurance9");
      var dobOne = this.getField("DOB-1");
      var dobTwo = this.getField("DOB-2");
      var dobThree = this.getField("DOB-3");
      var dobFour = this.getField("DOB-4");
      var dobFive = this.getField("DOB-5");
      var dobSix = this.getField("DOB-6");
      var dobSeven = this.getField("DOB-7");
      var dobEight = this.getField("DOB-8");
      var eowFields = [first, family, addressOne, addressTwo, postcodeOne, daytimeTelephone, payrollReference, nationalOne, nationalTwo, nationalThree, nationalFour, nationalFive, nationalSix, nationalSeven, nationalEight, nationalNine, dobOne, dobTwo, dobThree, dobFour, dobFive, dobSix, dobSeven, dobEight ];
      //Check required fields for completion and visibility
      for (var i in eowFields)
      if (eowFields[i].display == display.visible)
      this.EOWfieldCount++;
      if (eowFields[i].value != "")
      this.EOWnumComplete++;
      var t = this.getField("ExpressionWish");
      if (EOWnumComplete == 0)
      t.fillColor = this.gray;
      this.getField("EOWProgress").userName = "";
      else if (EOWnumComplete < EOWfieldCount)
      t.fillColor = this.amber;
      this.getField("EOWProgress").userName = "";
      else
      t.fillColor = this.green;
      this.getField("EOWProgress").value = this.EOWnumComplete + "/" + this.EOWfieldCount;
      if (this.EOWnumComplete == this.EOWfieldCount) this.getField("EOWProgress").userName = "Done";
    //Updates the Leidos Limited New Hires entry.
    /*----------------NEW-------------------*/
    function LNHupdate()
      this.LNHfieldCount = 0
      this.LNHnumComplete = 0;
      //Get all required fields in the form ----------- ecFirst, ecFamily
      var first = this.getField("FirstName");
      var family = this.getField("FamilyName");
      var lnhFields = [first, family ];
      //Check required fields for completion and visibility
      for (var i in lnhFields)
      if (lnhFields[i].display == display.visible)
      this.LNHfieldCount++;
      if (lnhFields[i].value != "")
      this.LNHnumComplete++;
      var t = this.getField("LimitedNewHires");
      if (LNHnumComplete == 0)
      t.fillColor = this.gray;
      else if (LNHnumComplete < LNHfieldCount)
      t.fillColor = this.amber;
      else
      t.fillColor = this.green;
      this.getField("LNHProgress").value = this.LNHnumComplete + "/" + this.LNHfieldCount;
      if (this.LNHnumComplete == this.LNHfieldCount) this.getField("LNHProgress").userName = "Done";
      else this.getField("LNHProgress").userName = "";
    //Updates the Leidos Employee Bank Details for Payroll entry.
    /*----------------NEW-------------------*/
    function EBDupdate()
      this.EBDfieldCount = 0
      this.EBDnumComplete = 0;
      //Get all required fields in the form -----------
      var first = this.getField("FirstName");
      var family = this.getField("FamilyName");
      var employeeNumber = this.getField("EmployeeNumber");
      var bankName = this.getField("BankName");
      var bankAddressOne = this.getField("BankAddressOne");
      var bankAddressTwo = this.getField("BankAddressTwo");
      var bankPostcodeOne = this.getField("BankPostcode-1");
      var bankSortCodeOne = this.getField("BankSortCode-1");
      var bankAccountNumber = this.getField("BankAccountNumber-1");
      var effectiveDate = this.getField("EffectiveDate");
      var ebdFields = [first, family, employeeNumber, bankName, bankAddressOne, bankAddressTwo, bankPostcodeOne, bankSortCodeOne, bankAccountNumber, effectiveDate ];
      //Check required fields for completion and visibility
      for (var i in ebdFields)
      if (ebdFields[i].display == display.visible)
      this.EBDfieldCount++;
      if (ebdFields[i].value != "")
      this.EBDnumComplete++;
      var t = this.getField("EmployeeBankDetails");
      if (EBDnumComplete == 0)
      t.fillColor = this.gray;
      else if (EBDnumComplete < EBDfieldCount)
      t.fillColor = this.amber;
      else
      t.fillColor = this.green;
      this.getField("EBDProgress").value = this.EBDnumComplete + "/" + this.EBDfieldCount;
      if (this.EBDnumComplete == this.EBDfieldCount) this.getField("EBDProgress").userName = "Done";
      else this.getField("EBDProgress").userName = "";
    //Updates the Baseline Personnel Security Standard entry.
    /*----------------NEW-------------------*/
    function BPSSupdate()
      this.BPSSfieldCount = 0
      this.BPSSnumComplete = 0;
      //Get all required fields in the form -----------
      var first = this.getField("FirstName");
      var family = this.getField("FamilyName");
      var addressOne = this.getField("AddressOne");
      var addressTwo = this.getField("AddressTwo");
      var postcodeOne = this.getField("Postcode-1");
      var daytimeTelephone = this.getField("DaytimeTelephone");
      var dobOne = this.getField("DOB-1");
      var dobTwo = this.getField("DOB-2");
      var dobThree = this.getField("DOB-3");
      var dobFour = this.getField("DOB-4");
      var dobFive = this.getField("DOB-5");
      var dobSix = this.getField("DOB-6");
      var dobSeven = this.getField("DOB-7");
      var dobEight = this.getField("DOB-8");
      var birthPlace = this.getField("PlaceOfBirth");
      var birthNationality = this.getField("NationalityAtBirth");
      var presentNationality = this.getField("PresentNationality");
      var bpssFields = [first, family, addressOne, addressTwo, postcodeOne, daytimeTelephone, dobOne, dobTwo, dobThree, dobFour, dobFive, dobSix, dobSeven, dobEight, birthPlace, birthNationality, presentNationality];
      //Check required fields for completion and visibility
      for (var i in bpssFields)
      if (bpssFields[i].display == display.visible)
      this.BPSSfieldCount++;
      if (bpssFields[i].value != "")
      this.BPSSnumComplete++;
      var t = this.getField("Baseline");
      if (BPSSnumComplete == 0)
      t.fillColor = this.gray;
      else if (BPSSnumComplete < BPSSfieldCount)
      t.fillColor = this.amber;
      else
      t.fillColor = this.green;
      this.getField("BPSSProgress").value = this.BPSSnumComplete + "/" + this.BPSSfieldCount;
      if (this.BPSSnumComplete == this.BPSSfieldCount) this.getField("BPSSProgress").userName = "Done";
      else this.getField("BPSSProgress").userName = "";

  • Javascript con forms. NotAllowedError.

    Buenas,
    tengo hecho un formulario que va creando dinamicamente unos txtbox con un botón. El tema es que quiero insertar este pdf, dentro de otro pdf.
    Cunado lo hago, no me funciona la funcionalidad de generar dinamicamente los txtbox... me dá el error:
    NotAllowedError: La configuración de seguridad impide el acceso a esta propiedad o método.
    Global.n:1:Field btnAdd:Mouse Up
    Este está en la función de métodos del ámibto del documento. La variable global.n = 1; parece que no me deja acceder... cuando des de el pdf que estoy haciendo individualmente si que funciona correctamente....
    ¿alguien le sale este error y sabe como solucionarlo?
    Muchas gracias por adelantado.
    Satuts!

    Gracias por la respuesta,
    finalmente lo he solucionado con el tema de poner las funciones en un ficherito .js a parte con privilegios.
    Otra cuestión,
    Sabes si hay alguna manera de mover un botón a la siguiente página?
    No puedo crear uno nuevo, porque necesito todas las funciones que tengo en el original. Uso esto ahora, pero no me funciona para cambiar de página porque no sé donde se lo puedo asignar:
            var newAddRect=[addRect[0], addRect[1] + delta -1, addRect[2],addRect[3] + delta -1];
            btnAdd.rect = newAddRect;
    He visto que hay la propiedad:   button.page, pero aunque he intentado asignarle el número de l nueva página no va, solo es de lectura....
    Muchas gracias por adelantado!
    Saludos cordiales.

  • 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

  • PDF Template spawn error NotAllowedError

    I have problem to spawn Template in PDF form. I have this code:
    var expTplt = getTemplate("myTemplateR");
    expTplt.spawn(pageNum+1,true,false);
    I have this error in Reader X:
    NotAllowedError: Security settings prevent access to this property or method.
    Template.spawn:2:Field GET TEMP:Mouse Up
    Any idea to resolve this problem?

    Prior to the release of Reader XI, Reader could not use the spawn method.with Reader unless special Reader Extended Rights were applied to the PDF by Acrobat or a LiveCycle Server. The "F" in the  fourth column (Availability),  of the Quick Bar provides the documentation about this restriction and other information for version or depreciation, save and preferences, and security.
    Reader XI no longer is subject to this restriction.

  • Why Net.SOAP.request leads to NotAllowedError?

    Hi Everyone,
    I have defined Documen-level script which makes a web service call to locally (on the same machine) hosted web service. When I try to call it I get:
    NotAllowedError: Security settings prevent access to this property or method.
    Net.SOAP.request:13:Document-Level:Scripts
    In Acrobat Pro version I can then select "Trust this document always" from drop-down and script will execute fine next time.
    How do I make this work normally? Do I have to sign PDF with some certificate or what? Or URL to the web service must be HTTPS?
    Thank you in advance.

    With the Adobe LiveCycle Reader Extensions ES2 module you can add the form rights:
    http://www.adobe.com/products/livecycle/readerextensions/

  • 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.

  • 'NotAllowedError:' - when trying to import a picture in acrobat reader v7

    Hi
    I am desperately trying to create a pdf template that people can use in Acrobat Reader V.7 - V7.1. I want the functionality that enables the user to click on a placeholder button/area and it will bring up the dialogue box enabling them to navigate to a picture file and insert it.
    I found this code on another forum which I attached to a button;
    event.target.buttonImportIcon();
    - and it works fine in acrobat Pro - but on Acrobat Reader - even after enabling usage rights it is throwing up an error;
    NotAllowedError: Security settings prevent access to this property or method.
    I believe there may be a way round this using a trusted function - but I am a complete novice when it comes to Javascripting and wondered if anybody could advise?!
    Thanks
    Jason

    Try the importIcon method to get a reference to an icon object, and copy it to the button, but it will only work to import PDF pages. Reader cannot convert images (jpeg, gif, tiff, etc.)
    George

  • 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

  • Batch Processing addField gives NotAllowedError

    I'm using Adobe Acrobat Pro 8.1.2. I tried the script in the JavaScript for Acrobat API Reference (April 2007) on page 266 and entered it into a batch sequence, but I get this error in the console regarding addField:
    Aborting Batch: NotAllowedError: Security settings prevent access to this property or method.
    Is anyone else getting this error with 8.1.2?
    Is there a fix or workaround?

    Thanks for the responses guys!
    On a related question, is there any way to batch certify hundreds of Designer-created PDFs? The only method that has worked was to certify them one-by-one in Acrobat. I've read the doc that PDL linked to, but it seems that the field signature methods don't work with Designer forms, unless I've missed something.

  • NotAllowedError - Reader 8 vs 7 inconsistency

    This is the loose transcription of a message already posted at the Planetpdf Forum. There became evident to me, that there are serious errors in the JS documentation, and there are also unpredicted changes in the JS behavior, so I really don't know whether it is worthwhile to invest in such an unreliable stuff anymore.
    I have a problem with a PDF, which I authored in Acrobat 7.0 Professional (WinXp). The PDF uses JavaScript to achieve some graphical effects. The problem is, it works just fine when viewed in Adobe Reader 7, but no longer works in Reader 8.
    This weird behavior is due to some apparently new Security Settings within Adobe Reader 8:
    Reader8 will refuse to set the .rect property for a ScreenAnnotation.
    There is a sample PDF for download at Planetpdf:
    http://forum.planetpdf.com/wb/default.asp?action=9&read=60443&fid=34
    If you enable the "Show console" functionality within Reader8, you will see that the following error is thrown:
    NotAllowedError: Security settings prevent access to this property or method.
    ScreenAnnot.rect:5:Screen theScreenAnnot:Mouse Up
    These are my findings so far:
    - the ScreenAnnot.rect documentation in the "JavaScript for Acrobat API Reference 8.1" does not make any reference to any rights or security-related issues.
    - according to my experiments so far, the problem is NOT related to the Document Restrictions settings, but who knows..
    Currently, it seems to me that I have no other option than rewriting my huge JS code and use Fields instead of ScreenAnnots. That would mean a lot of work, but I'll have to put aside some quite important features as well, which Fields simply don't provide.
    I don't think there are any workarounds, but if you know one, please let me know.
    Thanks for your time.

    Actually the JS API Reference for ScreenAnnot.rect does say it is restricted. If you'll notice the "D" in column 2 of the quickbar and then read what that "D" means, this is what the documentation says:
    Writing to this property or method dirties (modifies) the PDF document. If the document is subsequently saved, the effects of this method are saved as well. (In Adobe Reader, the document requires specific rights to be saved.)
    So if the document does not have save rights, Reader will not be able to modify the property. I am getting this from the JavaScript for Acrobat API Reference Version 8.1 (April 2007).

  • NotAllowedError when setting readonly

    Hi everybody,
    When I want to change the readonly property of a text field in a click or change event, I have the following error :
    NotAllowedError: Security settings prevent access to this property or method.
    Field.readonly:4:change undefined:Exec
    Here is my code :
    var v = event.target.getField("Dataset1[0].form1[0].Name[0]");
    v.readonly = true;
    I don't understand why, because in the javascript reference it doesn't appear to have specific security restriction on the readonly property.
    Anyway no security settings are specified in the PDF security tab.
    I have another strange behaviour when I want to set the value of my text field :
    InvalidSetError: Set not possible, invalid or unknown.
    Field.value:4:change undefined:Exec
    Here is my code :
    var v = event.target.getField("Dataset1[0].form1[0].Name[0]");
    v.value = "test";
    Someone can help me ?
    Thanks a lot !

    You first set up wireless security on the router. To do that you should use a computer which is wired to the router. Set it up through the web interface http://192.168.1.1/
    Then, after you did that you search for your SSID with your wireless computers, connect and it should ask you for the passphrase the first time you connect. After that it will automatically connect.
    If it does not connect and you did not change the SSID then you should clear out the list of preferred networks on your wireless computers (the wireless networks to which you have connected before). Then search again...

  • Disable Print from menu/toolbar from Designer 7

    Hello,
    I have a form that contains a print button, which is only executed if all validation rules are executed successfully. However, I still have the Print function in the menu and the toolbar of Acrobat/Reader. In the forum I found an entry stating that you should check out the AcrobatJS Guide and try hideMenuItem(). It seems that I could use this function also in Designer, but I get a 'NotAllowedError' when I try to call it. The Guide says that for security reasons you can only use this function in application initialization or console events. Any idea where I can find these events in Designer 7? Or does anyone know the related function in Designer 7? Or is it not possible to do this with Designer?
    I was also thinking if I could change the menu item, so that it takes my validation beforehand. I tried to put this in the prePrint event. Which really called my validation, however it still printed it afterwards. Any idea how I can stop the printing on failure of the validation?
    Regards, Karin

    Hello Hubert,
    you don't happen to have a sample or something? I tried to implement the hideMenuItem like it is described in the Acrobat scripting reference, but I still got the 'NotAllowedError'. I really find it confusing because some things of the Acrobat scripting is also working in Designer, others are not. Do you know if there is a documentation about this, like which Acrobat function can be used in Designer, which not, and which Acrobat function is named different in Designer, etc.?
    Regards, Karin

  • Javascript error for Inserting Pages from a source

    Below is a script I wrote that isn't functioning properly on my large 200 page document that I need it to. Granted there might be a much easier way to script this, but I'm no expert. I have a 200 page document that needs to be 600 pages, basically every page needs to be copied twice (and obviously placed right after the original. So I have the original PDF, then I copied that PDF to use as a source document to copy from. (To clarify if I'm not being clear, the first 3 pages would be page 1, 2, 3,... it needs to be: 1,1,1,2,2,2,3,3,3 etc)
    var targetpage = 0;
    var sourcepage = 0;
    while(sourcepage < 199)
        this.insertPages({
            nPage: targetpage,
            cPath: "source.pdf",
            nStart: sourcepage,
            nEnd: sourcepage
        targetpage++;
        this.insertPages({
            nPage: targetpage,
            cPath: "source.pdf",
            nStart: sourcepage,
            nEnd: sourcepage
        sourcepage++;
        targetpage=targetpage+2;
    It gives me an error that I have no idea means, nor how to correct after only placing a total of 3 pages - so the doc went from 200 to 203 (2 of page 1 as intended, then 1 page of page 2, then for some reason it stops...
    InvalidArgsError: Invalid arguments.
    Doc.insertPages:9:Batch undefined:Exec
    Why is it stopping? And please don't assume I know what I'm doing Thank you.

    Have you read the Acrobat JS API Reference about the insertPages and the path value and restrictions?
    insertPages now needs to use the "privileged context" when not being run as a console or batch event.
    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.

Maybe you are looking for