srikanthsrigir…

Not Able to Extract the Signature Blocks

0 votes
Hi I am trying to CreatePackage and upload using Rest APIs. Below is my JSON String and attached is the PDF. This used to work in may 2017. Now the PDF file is getting flattened ignoring signature blocks. Are there any changes post may 2017 for JSON payout for CreatePackage and Upload. Kindly take look and revert me. Thanks in advance. { "roles": [{ "id": "signer2", "index": "2", "type": "SIGNER", "name": "signer2", "signers": [{ "firstName": "Anurag", "lastName": "Anurag", "phone": "12345", "email": "[email protected]", "company": "Oracle", "delivery": { "email": true, "provider": true, "download": true } }] }, { "id": "signer1", "index": "1", "type": "SIGNER", "name": "signer1", "signers": [{ "firstName": "SRIKANTHSRIGIRI", "lastName": "SRIGIRI", "phone": "7406888787", "email": "[email protected]", "company": "Oracle", "delivery": { "email": true, "provider": true, "download": true } }] }], "documents": [{ "approvals": [{ "role": "signer1", "fields": [{ "type": "SIGNATURE", "extract": true, "subtype": "CAPTURE", "name": "001SIGNATURE1" }] }, { "role": "signer2", "fields": [{ "type": "SIGNATURE", "extract": true, "subtype": "CAPTURE", "name": "002signature2" }] }, { "role": "signer1", "fields": [{ "type": "SIGNATURE", "extract": true, "subtype": "CAPTURE", "name": "003signature3" }] }], "name": "313_379_441" }], "name": "Package001", "description": "Package Description ", "type": "PACKAGE", "emailMessage": "Default Email Notification for E-Signature", "autoComplete": true, "status": "SENT" } Regards, Srikanth Srigiri

Approved Answer

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Haris, Thanks for a lot for your help. Document level Extract: true worked. Regards, Srikanth Srigiri.

Reply to: Not Able to Extract the Signature Blocks

0 votes
COuld be that your PDF does not have a properly formatted Document Extraction FIeld for the Signature... http://docs.e-signlive.com/doku.php?id=esl:e-signlive_guide-working_with_documents&_ga=2.192098026.1189697060.1500903577-550786198.1500401807#document_extraction Haris, Can you tell me the difference between the Document Extraction as specified by the link above ? - Method which I'm using vs the method that is being discussed here ( which is new to me as I didnt know we can have a free form field and doesnt need to have the same nomenclature as described in the link above) Thanks

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Srikanth, At first I thought it was an issue of the signatures not showing up in the final document but that isn't the case. The reason why the signature fields in the original document are not being extracted is because you forgot to add an "extract": true at the document level. Here's a working JSON payload:
{
  "roles": [
    {
      "id": "signer2",
      "index": "2",
      "type": "SIGNER",
      "name": "signer2",
      "signers": [
        {
          "firstName": "Anurag",
          "lastName": "Anurag",
          "phone": "12345",
          "email": "[email protected]",
          "company": "Oracle",
          "delivery": {
            "email": true,
            "provider": true,
            "download": true
          }
        }
      ]
    },
    {
      "id": "signer1",
      "index": "1",
      "type": "SIGNER",
      "name": "signer1",
      "signers": [
        {
          "firstName": "SRIKANTHSRIGIRI",
          "lastName": "SRIGIRI",
          "phone": "7406888787",
          "email": "[email protected]",
          "company": "Oracle",
          "delivery": {
            "email": true,
            "provider": true,
            "download": true
          }
        }
      ]
    }
  ],
  "documents": [
    {
      "approvals": [
        {
          "role": "signer1",
          "fields": [
            {
              "type": "SIGNATURE",
              "extract": true,
              "subtype": "CAPTURE",
              "name": "001SIGNATURE1"
            }
          ]
        },
        {
          "role": "signer2",
          "fields": [
            {
              "type": "SIGNATURE",
              "extract": true,
              "subtype": "CAPTURE",
              "name": "002signature2"
            }
          ]
        },
        {
          "role": "signer1",
          "fields": [
            {
              "type": "SIGNATURE",
              "extract": true,
              "subtype": "CAPTURE",
              "name": "003signature3"
            }
          ]
        }
      ],
      "extract": true,
      "name": "313_379_441"
    }
  ],
  "name": "Package001",
  "description": "Package Description ",
  "type": "PACKAGE",
  "emailMessage": "Default Email Notification for E-Signature",
  "autoComplete": true,
  "status": "SENT"
} 
Haris Haidary OneSpan Technical Consultant

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Haris, Good Morning, Yes, the issue is consistent. Can you please run quick check at your end and let me know if any issues in JSON or PDF. Similar JSON and PDF used to work without any issue in last May 2017. The shared PDF is not working even with sample code that i have shared from Silanis Samples "CreatePackageAndUpload" against that JSON PDF file gets transmitted to Silanis SandBox, After Email notification tried to Sign the document, I don't see any signature blocks in PDF file Thanks in Advance for your help. Regards, Srikanth Srigiri.

Reply to: Not Able to Extract the Signature Blocks

0 votes
Try the payload I posted. It should solve your issue.
Haris Haidary OneSpan Technical Consultant

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Haris, Thanks for updated JSON Payload. I will give it a try. Need to add "extract": true at Document level is something optional in the past ( Some time May 2017) or introduced new. I am wondering as the Same JSON used to work for me consistently when I have tested in May 2017. After confirming this was working in may 2017, I have automated JSON string construction based PDF metadata. It is the same program without which is falling today from me. Kindly throw some more light on how it may be possible. Regards, Srikanth Srigiri.

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Srikanth, It's possible that it was a bug before and it was fixed in the latest releases. However, I can assure you that using any sort of extraction requires "extract": true at the document level. Here's our documentation it: http://docs.esignlive.com/content/c_integrator_s_guide/sdk/c_managing_documents/extraction.htm#Position
To enable Position Extraction on a field or signature, ensure that: The name of the field or signature in the SDK model is exactly the same as its name in the uploaded PDF file. Both the document and the field or signature are set to "extract". To set a field or signature to "extract", you must invoke the withPositionExtracted() method on the builder.
Haris Haidary OneSpan Technical Consultant

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Haris, Signature blocks are not shown again, Earlier after setting to Document level Extract: true issue is fixed. Are there any changes in request payload JSON for signature extraction. Attached is the Sample.pdf and request payload as below. kindly look into this and let me know any changes needed in JSON payload { "roles": [{ "id": "signer1", "index": "1", "type": "SIGNER", "name": "signer1", "signers": [{ "firstName": "Jason", "lastName": "Barrs", "email": "[email protected]", "company": "Oracle", "delivery": { "email": true, "provider": true, "download": true } }] }], "documents": [{ "approvals": [{ "role": "signer1", "fields": [{ "type": "SIGNATURE", "extract": true, "subtype": "CAPTURE", "name": "001SIGNATURE" }] }], "extract": true, "name": "TestPackage" }], "name": "Package001", "description": "Package Description ", "type": "PACKAGE", "emailMessage": "Default Email Notification for E-Signature", "autoComplete": true, "status": "SENT" } Regards, Srikanth

Attachments
Sample.pdf83.5 KB

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Can you please take look at this issue and let me know if any changes needed Thanks, Srikanth

Reply to: Not Able to Extract the Signature Blocks

0 votes
Hi Srikanth, Form field names are case-sensitive. In your pdf, you have "001signature" but in your payload you have "001SIGNATURE". Make sure they are both the same.
Haris Haidary OneSpan Technical Consultant

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