Ryan_Coleman

Multiple Captures

0 votes

Guys,

With the new FromFile aspect of things, is it possible to have 2 captures on one document? Can I have one fromfile capture and then one capture that is loaded from the handdrawn element?


Reply to: Multiple Captures

0 votes

Hi Ryan,

 

Yes, you can have a mix of from-file capture signature(s) with hand-drawn capture signature(s). If the approval is not flagged "fromFile:true", it will read the roles > signers > signature > handdrawn element.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Multiple Captures

0 votes

Hi Duo,

two question regarding for fromFile for signature:

1) is there SDK or API available to enable fromFile option for signature

2) if I have two signature with fromFile=true, can I upload the image to the 1st signature and this image will be automatically used in 2nd signature field as well?

thanks,

Cindy


Reply to: Multiple Captures

0 votes

Hi Cindy,

 

Upload image as signature is both supported by API and SDK, see below examples:

API payload:

{
  "roles": [
    {
      "id": "Role1",
      "signers": [
        {
          "email": "[email protected]",
          "firstName": "1.firstname",
          "lastName": "1.lastname",
          "company": "OneSpan Sign"
        }
      ]
    }
  ],
  "documents": [
    {
      "approvals": [
        {
          "fromFile": true,
          "role": "Role1",
          "fields": [
            {
              "page": 0,
              "top": 100,
              "subtype": "CAPTURE",
              "height": 50,
              "left": 100,
              "width": 200,
              "type": "SIGNATURE"
            }
          ]
        }
      ],
      "name": "Test Document"
    }
  ],
  "name": "Test Transaction - Upload Image as a Signature",
  "language": "en",
  "status": "SENT"
}

Java SDK:

DocumentPackage superDuperPackage = PackageBuilder.newPackageNamed("Upload an image to a signature")
        .withSigner(SignerBuilder.newSignerWithEmail("[email protected]")
                .withFirstName("John")
                .withLastName("Smith"))
        .withDocument(DocumentBuilder.newDocumentWithName("First Document")
                .fromFile("path_to_document") 
                .withSignature(SignatureBuilder.captureFor("[email protected]")
                        .onPage(0)
                        .atPosition(100, 100)
                        .setFromFile(true)))
        .build(); 

 

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Multiple Captures

0 votes

thanks Duo for the information. Unfortunately, #2 is not working as expected, i checked with Support team they confirmed that not working either.

 


Reply to: Multiple Captures

0 votes

Hi Cindy,

 

Sorry for the information. However, if the signer is an account sender, they can pre-store their image signature to their sender profile, in which case the same image can be applied to multiple signatures without multiple uploading.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Multiple Captures

0 votes

Hi Duo,

 

one question since we asked OneSpan to extract the signature, so our API call for create package has "approvals":[] which is empty. in this case, if we'd like to specify the signature can from file, how to do that?

thanks,

Cindy


Reply to: Multiple Captures

0 votes

Hi Cindy,

 

Unfortunately, I don't think fromFile flag currently works in tandem with extraction methods like text tags or document extraction. You may have to loop through the extracted signatures and update them if the signature type is capture.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Multiple Captures

0 votes

I see. do you know when OneSpan will support it? 

 

thanks,

Cindy


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off