• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

JS SDK visible digital signature

New Here ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

Is it possible to use SDK JavaScript API  to sign (visible digital sign) a file in the browser on the client side?

in sample for js

function AddSignature(doc)

{

    // if ACROSDK.sigDigitalIDPath is not spcified, ask for user input

    if(ACROSDK.sigDigitalIDPath == "UNKNOWN"){

        var cResponse = app.response({

                cQuestion: "Input your digital ID path:",

                cTitle: "Digital Signature",

                cDefault: "/C/DrTest.pfx",

        });

      

        if ( cResponse == null) {

            app.alert("No input.");

            return;

        }

        else

            SetUserDigitalIDPath(cResponse);

    }

      

    // if ACROSDK.sigUserPwd is not spcified, ask for user input

    if(ACROSDK.sigUserPwd == "UNKNOWN"){

        var cResponse = app.response({

                cQuestion: "Input your password:",

                cTitle: "Digital Signature",

                cDefault:  "testpassword",

        });

      

        if ( cResponse == null) {

            app.alert("No input.");

            return

        }

        else

            SetUserPassword(cResponse);

    }


    // create a new signature field

    var signatureField = AddSignatureField(doc);


    // sign it

    if(signatureFieldSign(signatureField, ACROSDK.sigHandlerName);

}

TOPICS
Acrobat SDK and JavaScript

Views

361

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

You’ve posted some code. How does it connect to the question? For example, does this seem to do what you want, but you don’t know how to run it? Or it does something different, what?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

LATEST

Yes, I do not know how to run. How in the browser after selecting a file to sign the selected file?

What library need to connect?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines