Adding Javascript to a Digital Signature

Hi all

I went through the forum for the good part of the last 2 days and have been unable to solve my problem (if it's fixable).  I wasn't really sure of this forum to post, but since he mainly a matter of Javascript and I'm not exerienced in Java, I've posted it here.

I created a form with Acrobat Pro XI and will be read in drive X.  My goal is to be able to insert a digital signature in the menu forms in Acrobat and Digital Signature properties, signing tab, I would like to input Javascript in the "this script is run when the field is signed:" section.  This script would be to e-mail the document in PDF format, with all the fields of the form, locked or flattened.  If possible, I want to change the name of the document and add the specific email subject line.

I tried to use the bu next script he errors on the cSubmitAs.

this.submitForm ({cUrl: "mailto:mail@domain", cSubmitAs: 'PDF',})

Any help would be greatly appreciated,

Eric

The script would be:

for (var i = 0; i)< numfields;="" i="" +="1)">

var fName = getNthFieldName (i);

Make the readonly field

getField (fName) .readonly = true;

}

This affects all areas, including buttons, read-only.

Tags: Acrobat

Similar Questions

  • JavaScript to disable digital signatures

    Hello

    Does anyone know of a javascript that I can use to turn off the option to create a new digital signature ID in Acrobat 9? I would like for users to simply be able to use a predefined identifier that I provide for them and not be able to create a new code. Any help would be appreciated.

    Thank you

    Hello

    Add the following registry entry to disable the creation of a digital ID:

    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Security\cPubSec]
    "bSelfSignCertGen" = DWORD: 00000000

    Steve

  • How to use Acrobat JavaScript to perform digital signature (e-sign) in several PDF documents?

    With this script, I can perform the signature batch:

    Choose the Manager

    var manipulador = security.getHandler ("Adobe.PPKLite");

    Login - change as the case

    manipulador. Login ("test123", "/ D/Users/p004826/AppData/Roaming/Adobe/Acrobat/10.0/Security/Israel.pfx");

    information

    myInfo var = {password: 'test123',}

    Reason: "como Salvar tests."

    {CDM: 'defaultAndComments'};

    Invisible sign

    this.certifyInvisibleSign({)

    oSig:manipulador,

    oInfo:myInfo,

    cDIPath:"/c/temp/sigSign.pdf,"

    cLegalAttest: "Certificado ussando o JavaScript."

    bUI:false

    });

    But he accomplished only with a. File saved locally PFX. I am trying to find a way that allows the user to insert a card and enter a password for the electronic signature. Anyone know anything else?

    Sorry for my bad English

    Thank you!!!

    Finally, I managed to solve. As a result...

    / * Sign documents requesting the password/PIN * /.

    / * Israel * /.

    If you want to see the result, uncomment

    Console.Show ();

    Console.println ("Start");

    Starts the Security Manager and connects.

    var vPPKLiteHandler = security.getHandler (security. (PPKLiteHandler, true);

    vPPKLiteHandler.login({bUI:true});)

    Console.println ("Logged: isLoggedIn =" + vPPKLiteHandler.isLoggedIn);

    Event.RC = vPPKLiteHandler.isLoggedIn;

    If (! event.rc) {}

    App.Alert ("Login failed for signature - Signature in batch abandoned.");

    throw "Login failed" ;}

    signs the document, the routine certifyInvisibleSign already registered

    Event.RC = this.certifyInvisibleSign (vPPKLiteHandler);

    Console.println ("assinatura da Resultado:" + event.rc);

    If (! event.rc) {}

    App.Alert ("doesn't have the signing of the document" + this.documentFileName)

    +"- Signature in abandoned lot. ») ;

    throw 'Fail to sign' ;}

    Note: This action is possible by opening Acrobat X. After execution, you can select the PDF file or select the directory that contains the PDF files.

    NOTE2: Sorry for my bad English

  • Add the field of digital signature with Javascript

    Anyone know if it is possible to perform the following operations using Javascript in Acrobat ms:

    -Open an existing PDF file

    -Place one or several fields of digital signature to specific positions

    If it is possible, how once the performance of the program in Acrobat DC and are there any special requirements (licenses, activation, etc.)?

    Rick

    Hi rmiranda-applikon,.

    I would like to move this thread to the correct JavaScript forum

    During this time refer to link Acrobat DC SDK Documentation

    Kind regards
    Nicos

  • Adding JS to Digital Signature fields programmatically

    Hello, I have a JavaScript that fills my adobe with 3 document signature fields and 3 fields of date in one place, then, the same code put JS in the tab calculate date as required fields.  What I can't seem to know is how to fill the signature with the JS I need for them to have as well.

    Below is the code for the custom action I created:

    First, acquire the box of culture for the Page #1

    var aCropRect = this.getPageBox("Crop",0);

    Calculate the rectangle on the implementation of the text box.

    Field is in the title to the signature block

    var nRight = aCropRect [2] / 1;

    Field is above the bottom 162pts, width 250 points, high 50 points

    var rectFld = [];

    rectFld [0] = nRight-350; Left side is 150pts on the left of the right

    rectFld [1] = aCropRect + 212 [3];  The upper side is 400pts over background

    rectFld [2] = nRight-100; Right side is - 25pts right of the right

    rectFld [3] = aCropRect + 162 [3];  The background is 360pts above the bottom of the box of culture

    Add the field

    var oFld = this.addField ("Signature1", "signature", 0, rectFld);

    Field is greater than the low, broad, 162pts 78 high points 50 points

    var rectFld = [];

    rectFld [0] = nRight-98; Left side is 98pts left of the right

    rectFld [1] = aCropRect + 212 [3];  The upper side is 212pts over background

    rectFld [2] = nRight-20; Right side is 20pts to the right of the right

    rectFld [3] = aCropRect + 162 [3];  The background is 162pts above the bottom of the box of culture

    Add the field

    var oFld = this.addField ("DATE_1", "text", 0, rectFld);

    ACCCT var = "if (!)". this.getField(\"Signature1\").value) this.getField(\"DATE_1\").value = "\". « ;

    this.getField("DATE_1").setAction ("Calculate", ccalc);

    Field is greater than the low 225pts, width 250 points, high 50 points

    var rectFld = [];

    rectFld [0] = nRight-350; Left side is 350pts left of the right

    rectFld [1] = aCropRect [3] + 275;  The upper side is 275pts over background

    rectFld [2] = nRight-100; Right side is 100pts right of the right

    rectFld [3] = aCropRect + 225 [3];  The background is 225pts above the bottom of the box of culture

    Add the field

    var oFld = this.addField ("Signature2", "signature", 0, rectFld);

    Field is greater than the low, broad, 225pts 78 high points 50 points

    var rectFld = [];

    rectFld [0] = nRight-98; Left side is 98pts left of the right

    rectFld [1] = aCropRect [3] + 275;  The upper side is 275pts over background

    rectFld [2] = nRight-20; Right side is 20pts to the right of the right

    rectFld [3] = aCropRect + 225 [3];  The background is 225pts above the bottom of the box of culture

    Add the field

    var oFld = this.addField ("DATE_2", "text", 0, rectFld);

    ACCCT var = "if (!)". this.getField(\"Signature2\").value) this.getField(\"DATE_2\").value = "\". « ;

    this.getField("DATE_2").setAction ("Calculate", ccalc);

    Field is greater than the low 495pts, 75 points wide, high 25 points

    var rectFld = [];

    rectFld [0] = nRight-200; Left side is 150pts on the left of the right

    rectFld [1] = aCropRect + 520 [3];  The upper side is 520pts over background

    rectFld [2] = nRight-125; Right side is 125pts to the right of the right

    rectFld [3] = aCropRect + 495 [3];  The background is 495pts above the bottom of the box of culture

    Add the field

    var oFld = this.addField ("Signature3", "signature", 0, rectFld);

    Field is greater than the low 495pts, width 60 points, high 25 points

    var rectFld = [];

    rectFld [0] = nRight-110; Left side is 110pts left of the right

    rectFld [1] = aCropRect + 520 [3];  The upper side is 520pts over background

    rectFld [2] = nRight-50; Right side is 50pts to the right of the right

    rectFld [3] = aCropRect + 495 [3];  The background is 495pts above the bottom of the box of culture

    Add the field

    var oFld = this.addField ("DATE_3", "text", 0, rectFld);

    ACCCT var = "if (!)". ' this.getField(\"Signature3\").value) this.getField(\"DATE_3\").value =------"------" (util.printd (\"mm/dd/yyyy\ ', Date() ')) new";

    this.getField("DATE_3").setAction ("Calculate", ccalc);

    Here are the things I need in the fields of signature respectively...

    If (! this.getField(\'Signature1\').value) (this.getField(\'DATE_1\').value) =------"------" (this.getField(\'DATE_1\').value = util.printd ("mm/dd/yyyy", new Date()));

    If (! this.getField(\'Signature2\').value) (this.getField(\'DATE_2\').value) =------"------" (this.getField(\'DATE_2\').value = util.printd ("mm/dd/yyyy", new Date()));

    If (! this.getField(\'Signature3\').value) (this.getField(\'DATE_3\').value) =------"------" (this.getField(\'DATE_3\').value = util.printd ("mm/dd/yyyy", new Date()));

    I guess it starts like that, but don't have any idea...

    var s = this.getField ("Signature1");

    s.setAction ("Format",

    If I understand you, work with your two fields Signature1 DATE_1, you want to program an automatic in the field of DATE_1 date, when a digital signature is placed in the field Signature1  Similarly, you want DATE_1 empty if there is no digital signature.

    Under your code to add the Signature1 field, add the following two lines of code:

    var s = "if (!)". "this.getField(\"Signature1\").value) this.getField(\"DATE_1\").value = \"\";\relse this.getField(\"DATE_1\").value = util.printd (\"mm/dd/yyyy\ ', Date() ") new;";

    oFld.setAction ("MouseUp", s);

    Translated, if there is no content Signature1 (begin to sign but decide to hit cancel them), the area of the DATE_1 remains empty, but if the signature is placed, the DATE_1 field updates to reflect the current date.  (Variable s contains two lines of code)

    DATE_1 your code seems to work fine when it is used with the above lines.  If the signature field is removed, the field DATE_1 will erase the previous date that was displayed.

  • Problems with adding fields of digital signature

    OK, so I'm an IT Manager / developer DB for a defense contractor. And I consider myself reasonably technically competent in MOST things. But this problem has left me speechless (for the most part) for lack of decent instructions or advice are on the lines.

    , I'm looking to create a form for use by the employees of my company to follow the 'signatures'. we have so far put in forms manually signed for this purpose, my goal is to go paperless with this process. I know it can be done because the air force (my client) uses a form that allows you to do something similar (see here: http://www.dtic.mil/whs/directives/infomgt/forms/eforms/dd2875.pdf). Forward listed form allows you to 'click' on the signature block and add your digital signature (which, for the AF, comes from an IDENTITY card). Let explain me the dev environment, I am using / testing on:

    Creation of the form:

    I use my laptop with my own personal copy of Adobe Pro 9. I have no installed dig signature or any ability to use on this system. I CAN, however, add the field to the GIS during the creation of the form and the field responds when you click on it, but with a command prompt different than the 2875 (I think this may be part of the question). Then I tried sending it to my AF computer to test whether it will actually allow me to add a signature block.

    Tested the form:

    On my AF computer I only software adobe reader 9 installed, and it will allow me to add my signature to the DD 2875. When I do my newly created form with my added field GIS that nothing happens at ALL when you click it.

    Troubleshooting:

    I first noticed that under form properties security has been put in place to NOT allow the signing. I changed that and returned on one system to the other, and it seems that in the translation he loses this setting. First, I assumed it might be due to the security the AF place on its e-mail servers. So in response I burned the form of a cd and manually transferred but got the same result.

    Conclusion:

    I terribly bit educated on the development of PDF I suspect to understand everything that happens here, but I feel there's a script attached to the FA form that works and allows him to function properly. If this is the case I don't know what recourse I have, if any. BUT, if its something simple that I'm missing just in cause of my lack of experience I hope someone here can help me.

    Thank you!

    Hi LBitner99,

    Before you can use Adobe Reader to add a digital signature to a PDF document, the file must be "enabled for the drive.  There are two ways to do this, you must use a server, what the DoD because they need to drive helps thousands of documents. The other way is to use Acrobat Pro (I know that you said you have Pro, but for anyone else reading this has has Acrobat Standard, this version is not the feature activate Reader).

    With the file you worked on open in select Acrobat the Advanced > extend features in Adobe Reader menu item. Click the Save button in the dialog box that followed, and the new file will have digital signature rights in Reader.

    I hope this helps.

    Steve

  • Adding Digital Signatures after Certification

    I'm using Abode Acrobat Version 11.0.0 with Windows 10.

    I want to be able to circulate a document for signature by others, after that I have certified it.

    When you apply a Certification I select the Option "Annotations, fill in form, and digital signatures" as Actions permitted after certification however the certified document is completely locked and I am not able to make changes or add digital signatures.

    Is this a known bug or I do something wrong?

    The words "...". and digital signatures"does it mean the user will be able to sign the unsigned signature fields that are available. So you will need to add as many fields of digital signature, you will need the document before certifying that he.

  • Adding fields of Digital Signature to multiple Pages in a Document

    Hello

    I have a batch processing java script that will set the fields of digital signature in a drawing.

    Sometimes drawing can contain several pages and the script must set the fields of digital signature on each page.

    The problem with the script that I have is that the digital signature fields appear only on the first page.

    Can someone please provide help to modify my script so that the fields of digital signature are displayed on each page?

    Drawing signature field rev 0

    var this.numPages = NUMPAGES;
    for (var i = 0;  I < numpages; i++) {

    var a = this.addField ("Checked", "signature", i, [1783, 174, 1724, 198]);

    var b = this.addField ("Designed", "signature", i, [1783, 149,5, 1724, 173,5]);

    var c = this.addField ("App Design", "signature", i, [1783, 125, 1724, 149]);

    var d = this.addField ("Proj App", "signature", i, [1783, 101, 1724, 125]);

    }

    Thank you very much.

    You can't have more than one signature with the same name field. In addition, your rect coordinates are reversed, they should look be:

    var a = this.addField("Checked", "signature", i, [1724, 198, 1783, 174]);  // etc.
    
  • Help! File is signed with a digital signature of broker issued by HP?

    When I use AGV to scan my computer also says: the file is signed with a signature digital broker issued by HP and listed below: what do I need to worry?

    'C:\Windows\Installer\4256e.msi '; "The file is signed with a digital signature that is broken, published by: Microsoft Corporation. »
    'C:\Windows\Installer\4ef25.msi '; "The file is signed with a digital signature that is broken, published by: Smith Micro Software. »
    'C:\Windows\Installer\5b13a.msi '; "The file is signed with a digital signature that is broken, published by: Microsoft Corporation. »
    'C:\Windows\Installer\5d75f.msi '; "The file is signed with a digital signature that is broken, published by: Microsoft Corporation. »
    'C:\Windows\Installer\5d764.msi '; "The file is signed with a digital signature that is broken, published by: Microsoft Corporation. »
    'C:\Windows\Installer\8c2e5.msi '; "" The file is signed with a digital signature that is broken, published by: Apple Inc. ".
    'C:\Windows\Installer\8cab8.msi '; "" The file is signed with a digital signature that is broken, published by: Apple Inc. ".

    Hi jambros,

    · You have several security software installed on your computer?

    A digital signature is an electronic security mark that can be added to the files. It allows you to verify the Publisher of a file and helps verify that the file has not changed since it has been digitally signed.

    If the file does not have a valid digital signature, has no way for you make sure that the file is actually from the source, of what he wants, or that he didn't has not been tampered with (possibly by a virus) since its publication.

    I see many users who ran the scan on their computers using the software AVG anti-virus is facing error messages similar.

    Return return to previous versions of AVG has solved it concern. You can see an example of the same thing:http://social.answers.microsoft.com/Forums/en-US/xphardware/thread/8445d911-ebb0-4292-96ba-749de4fcb672

    If you have more security software is installed on the computer, I suggest you to uninstall the security software.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The file is signed with digital signature is broken, published by: VideoSoft

    When I run the antivirus it comes up with the following legend:

    The file is signed with a digital signature that is broken, published by: VideoSoft

    Windows\System32\Vsflex6.ocx

    Help

    Thank you

    Hi Charlydue,

    A digital signature is an electronic security mark that can be added to the files. It allows you to verify the Publisher of a file and helps verify that the file has not changed since it has been digitally signed.

    If the file does not have a valid digital signature, has no way for you make sure that the file is actually from the source, of what he wants, or that he didn't has not been tampered with (possibly by a virus) since its publication. It is safer to avoid opening the file unless you know for certain who created it and if the content is safe to open it.

    Even a valid digital signature does not verify the content of the file is harmless. You need to decide if you should trust the contents of the file based on the Publisher's identity and where you download the file from.

    Try upgrading to the latest version of VideoSoft and check if the error disappears. Also, contact the software vendor for assistance.

    Gokul - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Windows Installer broken error of digital signature after execution of moy.

    Original title: Windows Installer broken digital signature__

    I installed AVG tuneup on my two laptops. Now when I scan my computer two MSI report broke digital signatures. Does anyone have a solution for this problem

    JBBLCC

    Hello

    A digital signature is an electronic security mark that can be added to the files. It allows you to verify the Publisher of a file and helps verify that the file has not changed since it has been digitally signed.

    If the file does not have a valid digital signature, has no way for you make sure that the file is actually from the source, of what he wants, or that he didn't has not been tampered with (possibly by a virus) since its publication.

    After my research, I have found many users who have faced the problem were able to resolve back to earlier versions of AVG. You can also try.

    For more help, please communicate with the help of AVG: http://www.avg.com/us-en/support

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Can I exclude the time included with the date in a digital signature for Acrobat DC?

    The digital signature field is a field of area/half which can contain the bit of your own signature image, while the other half contains printed information that are partially customizable via the interface of Acrobat DC:

    acrobatdc-sig2.png

    There that somehow we can exclude the date and GMT (surrounded above)? If this is not possible through regular programming interface, it is possible using an Acrobat API (since Acrobat supports the use of Javascript)?

    Hi rmiranda-applikon

    Yes! You can do the same thing.

    Once you choose to add a Digital Signature in PDF format, click on create a new look... option under label appearance as shown below:

    Of the configure Signature appearance that opens dialog, uncheck the option 'Date' and select the options desired, that you want to display in your signature.

    Kind regards

    Ana Maria

  • How do you create field based on signature certificates where you can add a digital signature to the ID?

    During the preparation of a form, it seems that if the field name includes the word "signature", a signature by certificate field is created. If the word "signature" is not present an ordinary field is added which can be signed using fill and sign. I need to know how to create a signature by certificate field (if none is not automatically created) so that the digital IDs can be used to sign the document.

    You can manually add any type of field you want in the form of edit mode. Different field tools are in the toolbar at the top. One of them is the digital signature field tool.

  • Set the Action to add a script to the signature field digital signature

    In the properties of the digital signature in the tab signed field there is an option to run a script when the field is signed.

    I can manually add a script for the properties of the field of digital signature with no problems.

    I now need to add this script in the field of signature by program (batch), but do not know how to call the "run a script when the field is signed in option.

    This is different from the mouse upward, the mouse to the bottom of the actions and I couldn't find the terminology for this in the javascript reference guide.

    var f = this.getField ("ReviewedSignature");

    f.setAction ('?', app.mailMsg ({bUI: false, cTo: "emailaddress.com", cSubject: "Technical Document for approval and signature", CMSG: "Please check and sign the technical assessment document" + "\n\n" + "Best regards" + "\n\n" + "Name"});)

    Note: This is for Adobe Professional 9.

    Thanks for any help provided.

    This is the Format event.

  • Problem of size of form with several Digital Signatures

    I created a form (liveCycle 8) with several digital signatures.  When each user signs the form, this section of the form is locked using collections.  The form is workflow by email after each user connects it.  Whenever the user signs and submits the form, the size of the form becomes too great.

    How to optimize the form to compress whenever a user signs the form?

    Thank you

    Lori

    Steve,

    After your request to publish the form, I wanted to remove some elements of society, such as the Logo.  Once I removed the Logo, I found that the biggest problem was a Logo image size which was the large file.  Once I reduced the size of the image, added only 46 KB signatures at each level of signature.

    Thank you for your help,

    Lori

Maybe you are looking for

  • HP Compaq Elite 8300 CMT: updated graphics card for HP Compaq Elite 8300 CMT

    Currently, I have HP Compaq Elite 8300 CMT Business PC with ATI Radeon HD 7450 graphics card. This map, however, does not seem to be compatible with the new CC in Photoshop. I want to update the graphics card. Supported for this PC graphics cards lik

  • update of compaq nc6220

    I'm trying to upgrade a compaq nc6220 original 512 MB mem 1.9 GHz cpu speed Intel Prem, added the new 320 gb hard drive and 2 (1) MB mem, shutt off Hibern and again, it will recognize that 1 MB (1024). What I am doing wrong? fpratts

  • a critical security update problem

    Sunday, I searched until a later date on my calendar (under the clock) and forgot to get back to the current date. In the middle of the night my MSE updated, and it now shows the last date of update in the future. It shows the last update 8/31/2112 A

  • Windows boot slow.and installation of the drivers.

    Original title: Watch Windows reinstall the motherboard drivers? I just got my computer fixed and reinstalled windows vista home basic 64-bit. A week later a windows popup (windows new hardware detected) driver installation said that windows was rein

  • ControlledAccessException on addGlobalEventListener

    I added a global event listener to my UiApplication.  On I tested it on most of the devices, it works well.  However, it was just brought to my attention that the call to addGlobalEventListener sometimes throw a ControlledAccessException.  I know thi