Digitally sign all Signature fields in the Active Document

I have a script that will sign a unique digital signature with the name of the field field.

I need to see the script so that it will sign in fields many/any signature in the active document without having to put the name of the field in the script, as domain names vary with each document.

Can someone advise please how do I change the script to sign all the fields in the active document, regardless of the domain name?

function myOtherTrustedFunction()
{
app.beginPriv ();
Get and connection to the Security Manager

var oSigHdlr = security.getHandler ("Adobe.PPKLite");
oSigHdlr.login ("123", "/ c/Documents and Settings/name/Application Data/Adobe/Acrobat/10.0/Security/FirstNameLastName.pfx");

Signature properties configuration

chk var = this.getField ("Checked");
If (chk! = null) {}

Apply the Signature and store it in the original file

bRtn var = chk.signatureSign ({oSig:oSigHdlr, bUI:false, oInfo: {password: "123"}});
}

app.endPriv ();
}

Any help will be most appreciated.

How about this:

var myEngine = security.getHandler("Adobe.PPKLite");
myEngine.login("123", "/c/Documents and Settings/name/Application Data/Adobe/Acrobat/10.0/Security/FirstNameLastName.pfx");

for (var i = 0; i < numFields; i++) {

    // Get the current field object
    var f = getField(getNthFieldName(i));

    // If it's a signature field and not already signed, sign it
    if (f.type === "signature" && !f.value) {

        // Sign the field
        f.signatureSign(myEngine, {password: "123"});

    }
}

Tags: Acrobat

Similar Questions

  • How to allow the addition of attachments and more filled in form fields and signing existing signature field

    How do to allow the addition of attachments and more filled in form fields and signing of signature field when creating a secure pdf document?

    You must allow commenting as well. Reader users will be able to add attachments as comments. You can also use JavaScript with Player 11 and DC to automate the process somewhat.

    If you need users of Reader in order to add attachments as Acrobat can, you need to add the right of use of file attachments, but you can't do that with Acrobat.

  • Why is - what happens, never summer... EchoSign could not create your agreement because not all signature fields could be added to it.

    EchoSign could not create your agreement because not all signature fields could be added to it. Why is it that happens suddenly never... even documents and acct

    I get the same message when sending a PDF generated with more than 2 signatories.

    I have no problem with the RTF document or some other PDF documents. It also seems to be a recent problem.

    Can you please provide all the details on that?

    Thank you

  • After several years, all of a sudden my Photoshop CS wants to reactivate, otherwise the product is worthless.  All right, I got the activation code, but nowhere to put it!  Help!

    After several years, all of a sudden my Photoshop CS wants to reactivate, otherwise the product is worthless.  All right, I got the activation code, but nowhere to put it!  Help!

    I guess you run Photoshop CS2 or more?

  • File name of the active document

    Hello friends,

    Now that I managed to find quotes (special strings) in paragraphs, notes, tables and table notes - all with your generous help - I need to know the name of the file (path) of the current document (or book).

    All I've found is how to get the name of an element of the book file (finally that I need too, but later).

    How can I find the file name of the active document (which is not part of a book) and

    How can I find the file name of the current book?

    Thanks again for your help

    Klaus

    Friends,

    Suddenly, I found the answer (research in the reference of the oject for 'Filename' rather than 'file name' - 'path' in the FDK reference):

    alert ("Now processing book\n"+ app.ActiveBook.Name);
    alert ("Now processing document\n"+ app.ActiveDoc.Name);
    
  • How to print ONLY the active document?

    Whenever I go to file/print program PSE 9 darn all working files sends in the tray of the printer. I searched online for 2 hours, now looking for an answer.

    I enjoy working with several to several files in the 'bin' and prefer to print only the active file, I am currently working on without having to close the "working files" before I can print. How can I print ONLY the active document or file in the location of project? Please help, I upgraded from PSE 3 PES 9 and really like the updated features, but what a pain in the neck by default becomes the best of me.

    Select it in the trash before calling to the top of the print window. If nothing is selected, everything happens in the print window.

  • Get the path of the active document from Photoshop

    It works in Photoshop and Bridge script (Javascript)

    var myPath = activeDocument.name;

    Tester.PSD

    This only works in Photoshop script (JavaScript), but not in the bridge.

    var ProcessFolder = activeDocument.path

    actually stops the script, without error or warning.

    How can I get the path to the file in the active document in Photoshop through Bridge?

    Thank you!

    Hello

    You can use BridgeTalk to communicate between applications

    In this case, there is the code and you must run it from the bridge to get the information you need for photoshop:

    // run this from Bridge to get the path of the active document
    // if photoshop is not running, it gives that message
    // if photoshop is Busy, it gives that warning
    // if photoshop has any images opened, it avoids getting the path and warn you
    
    pathFromPS();
    
    function pathFromPS() {
        var bt = new BridgeTalk;
        bt.target = "photoshop";
        bt.body = '(app.documents.length > 0) ? app.activeDocument.path : "No active images";';
        bt.onResult = function (resObj) {
            activePath = resObj.body;
        }
        if (BridgeTalk.getStatus (bt.target) == 'IDLE') {
            bt.send(3);
        } else {
            activePath = (BridgeTalk.isRunning(bt.target)) ? "[Busy]" : "[Not Running]";
        }
        return activePath;
    }
    
  • How to add a character style in the active document

    Hi experts

    How to create a character style in the active document.

    How to make the script work.

    Thank you

    Respect of

    John

    var myCharacterStyle;

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

    myCharacterStyle.add)

    There is not much to say about your code. Only the last line would cause a problem. A possible hiccup is also on the fact that the style may already exist when you want to add.

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.item ('c');

    ! myCharacterStyle.isValid & myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

  • I really need someone to help me. I tried to figure out how to select a PDF to convert a Word doc. When I go to select a PDF file, all that comes is the WORD documents. doesn't show ANY of my PDF files... Please help me understand wh

    I really need someone to help me. I tried to figure out how to select a PDF to convert a Word doc. When I go to select a PDF file, all that comes is the WORD documents. doesn't show ANY of my PDF files... Please help me understand what is happening? We put it on automatic renewal so I know it's not that we have not renewed this subscription, because we pay automatically.

    Hi olivias,.

    Looks like there may be some confusion on your system which application should be associated with PDF files. You can reset the file name associations by following the steps described in these articles (depending on your operating system):

    How to change the default application for a file type. Macworld

    http://Windows.Microsoft.com/en-us/Windows/change-default-programs#1TC=Windows-7

    Please let us know if you have any additional questions.

    Best,

    Sara

  • Add the signature field to the second occurrence of two words (nieme Word) on the page


    I have a script that searches for two words ("APP ENG") on a page and adds a digital signature field.

    The trick is that there are two occurrences of these words and place the script in the field of digital signature on the first ocurrance of the two words.


    I need the digital signature script to add to the second occurrence of these two words.

    There was a counter added the script, but this place then the field on the word ("ENG"), it might have to do with the meter to count one word instead of two.


    If someone can help me to modify the script to count the words and the occurrences of two words instead of one word it would be most appreciated.

    Script as follows:


    var ckWords; pair of words to test

    var number = 0;

    numWords = this.getPageNumWords (0); number of words on the page

    loop through the words on the page

    for (var j = 0; j < numWords-1; j ++) {}

    get the pair of words to test

    ckWords = this.getPageNthWord (0, j) + ' ' + this.getPageNthWord (0, j + 1); test words

    If (ckWords == "ENG APP") {}

    Count += 1;

    If (count == 2) {}

    var q = this.getPageNthWordQuads (0, j);

    convert quads in the rotation by default user space

    Userspace used by links

    m = (new Matrix2D).fromRotated(this,0);

    mInv = m.invert)

    r = mInv.transform (q)

    r = r.ToString)

    r = r.split(",");

    var m = this.addField ("EngSignature", "signature", 0,

    ([r [0], [1] r, r [2], r [5]]) ;

    }

    }

    }

    Thank you.

    You must use the left coordinates of the first table and the right of the second table.

  • Issue all try to perform the active database duplication with RMAN

    Hi all

    I would like to duplicate the database CURRENTLY to DATABASEB and must be performed in the same server. I tried to bounce the instance listener & databaseb several times, but no luck.

    Please help me solve this problem and why its happening.


    Step 1: The instance of DATABASEB is phase Nomount

    Step 2:


    == > tnsping DATABASEB

    AMT Ping utility for Linux: Version 11.2.0.2.0 - Production on 2012-SEP-11 07:36:54

    Copyright (c) 1997, 2010, Oracle. All rights reserved.

    Use settings files:


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = client) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DATABASEB)(UR=A)))
    OK (10 ms)


    Step 3:

    == > rman target sys/***@DATABASEA auxiliary sys/***@DATABASEB

    Recovery Manager: release 11.2.0.2.0 - Production kills Sep 11 07:37:50 2012

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    connected to target database: CURRENTLY (DBID = 1723462779)
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of the package manager internal collection failed
    RMAN-04006: auxiliary database error: ORA-12514: TNS:listener is not currently of service requested in connect descriptor


    Thank you

    Hello;

    You need a static entry for this: (SID_LIST_LISTENER is the static entry)

    Example of

    DCLONE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = server.myhost.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DCLONE.myhost.com)
        )
      )
    
    SID_LIST_LISTENER =
       (SID_LIST =
           (SID_DESC =
           (SID_NAME = PLSExtProc)
           (ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
           (PROGRAM = extproc)
         )
           (SID_DESC =
           (global_dbname = STEST.myhost.com)
           (ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
           (sid_name = STEST)
       )
      (SID_DESC =
           (global_dbname = DCLONE.myhost.com)
           (ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
           (sid_name = DCLONE)
       )
    )
    

    Make sure you stop and restart the receiver.

    The needs of the auxiliary Instance be started NOMOUNT on a file INIT.

    Given that its on the same server, you must DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT in the INIT

    I have always copy and rename the password too.

    And the RMAN to connect as

    Target of $ORACLE_HOME/bin/rman = sys /auxiliary @source = sys /@clone

    connected to target database: SOURCE (DBID = 2236120765)
    connected to the auxiliary database: CLONE (unassembled)

    DUPLICATE THE TARGET DATABASE TO THE ACTIVE DATABASE NOFILENAMECHECK IPMTEST;

    H2. Another method

    http://www.Visi.com/~mseberg/create_a_duplicate_database_on_the_same_host.html

    Best regards

    mseberg

  • Close the active document without saving changes

    Hi all

    Someone at - it a script to close the current document of the acrobat form without saving changes?

    I have a script to do all the fields in a read-only form, print and then send the finished form, but would then close the document without saving changes.

    Thank you

    Simon

    this.closeDoc (true)

  • SkyDrive links added to all default email on the last document

    Attaching a series of 4 documents to an email in Hotmail via skydrive translates into hyperlinks for each document appearing as a list in the email as well as hyperlinks allowing you to ' go to ' 4 documents or download as a zip file.

    Using the two links this last fine, but all four of the hyperlinks in the list title will take you to the same document, which is always the last document added.

    It's weird and annoying.  Any body know why this happens and how to fix?

    Hello

    Check with the support of SkyDrive and Forums.

    SkyDrive
    http://explore.live.com/SkyDrive

    SkyDrive - Help Center
    http://explore.live.com/SkyDrive-Help-Center?T1=T1

    Windows Live SkyDrive (forums on the right side)
    http://windowslivehelp.com/product.aspx?ProductID=6

    Windows Live Solution Center
    http://windowslivehelp.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Save as - name of the active document

    Does anyone know how script backs up new name of file with Javascript for Photoshop?

    I can save the file under a new name, but it does not replace the current active document that it records since. The current active document still has the old name.

    saveFile = new File (filePath () + "/" + fileName ())

    saveOptions = new PhotoshopSaveOptions();

    saveOptions.layers = true; Preserve layers.

    saveOptions.embedColorProfile = true; Keep the color profile.

    saveOptions.annotations = true; Keep annonations.

    saveOptions.alphaChannels = true; Preserve alpha channels.

    saveOptions.spotColors = true; Preserve spot colors.

    app.activeDocument.saveAs (saveFile, saveOptions, true, Extension.LOWERCASE);

    $.writeln (savefile);

    app.activeDocument.saveAs (saveFile, saveOptions, true, Extension.LOWERCASE);

    If you set it to 'true' to 'asCopy' (the third property) the behavior seems to be as expected.

  • How do I get the content from another file and paste it into the active document instead of certain string?

    I am newbie in indesign scripting of animals. So I apologize because I couldn't post my essays.

    Objective:
    I have a .indd document which will be a figure of legend, label etc. I need to copy the content (a figure that is editable) else file indd of this document where the tag figure exists.

    For example:
    Sample.indd

    Some text Fig.1.1 caption some text 

    I need to copy the contents of figure1.indd and paste in the document sample.indd where Fig.1.1 string exist and so forth. Now I do it manually. But am supposed to automate this process.

    So, I need some hint how to do it using extendscript?

    I found something like below, to do so, but I have no idea to develop it further and also do not know if this approach is correct my results. Please help me

    myDocument=app.open(File("file.indd"),false); //opening a file to get the content without showing.

    myDocument.pages.item(0).textFrames.item(0).contents="some text"; //here I could set the content but I don't knw how to get the content

    // ?????? Then I have to paste the content into active document.

    Try this test nicely to your and end, hope this will help you.

    var myDoc = File("/D/Sample.indd");//Figure File
    var myFigDoc = File("/D/Figure.indd");//Destination File
    app.open(File(myFigDoc));
    app.activeDocument.pageItems.everyItem().select();
    myObj = app.selection;
    var myGroup = app.activeWindow.activePage.groups.add(myObj);//Grouping the objects
    myGroup.select();
    app.copy();
    app.open(File(myDoc));
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "Fig 1.1";//Figure caption text
    app.findGrepPreferences.appliedParagraphStyle = "FigureCaption";//Figure Caption Style
    myFinds = app.activeDocument.findGrep();
    for(var i=0;i		   

Maybe you are looking for