+ Start a Discussion
Venkatesh SVenkatesh S 

PDF_VALIDATION_FAILED The validation of the PDF file failed.

Hello,

I am trying to send pdf document to docusign api.  I am always getting this error.
{
"errorCode": "PDF_VALIDATION_FAILED"
"message": "The validation of the PDF file failed."
}

The payload is multipart data with boundary.
--AAA
Content-Type: application/json
Content-Disposition: form-data

{
  "status":"sent",
  "emailBlurb":"Test Email Body",
  "emailSubject": "Test Email Subject",
  "enforceSignerVisibility":"True",
  "documents": [{
      "name": "document.pdf",
      "documentId":"1",
      "order":"1",
      "fileExtension":"PDF",
  }],
  "recipients": {
    "signers" : [{
      "email": "test1@gmail.com",
      "name": "test1",
      "recipientId":"1",
    },
    {
      "email": "test2@gmail.com",
      "name": "test2",
      "recipientId":"2",
    }]
  }
}
--AAA
Content-Type: application/pdf
Content-Disposition: file; filename="document.pdf";documentid=1

JVBERi0xLjQKJeLjz9MKMiAwIG9iaiA8PC9Db2xvclNwYWNlWy9JbmRleGVkL0RldmljZVJHQiAz
KMDAwAAAAAAAAAAAACldL01hc2sgWzAgMCBdL1N1YnR5cGUvSW1hZ2UvSGVpZ2h0IDEvRmlsdGVy
L0ZsYXRlRGVjb2RlL1R5cGUvWE9iamVjdC9XaWR0aCAxL0xlbmd0aCA5L0JpdHNQZXJDb21wb25l
bnQgMj4+c3RyZWFtCnicYwAAAAEAAQplbmRzdHJlYW0KZW5kb2JqCjUgMCBvYmogPDwvRmlsdGVy
L0ZsYXRlRGVjb2RlL0xlbmd0aCAxOTc+PnN0cmVhbQp4nH2QPWvDMBRF9/sr7pgsytOHJbyWxpRC
B1NBh5ApTtMEO8ZuwX+/kkKh7RC0HLjv6F1pwkOEMNSGscM2osUEUWJDxQWGzym8QAtfsNsLO1jP
UHkOqMKN+kLWK3GJ7R+85R94wxUTRaVLJZ8MzjDYWhnHw8DNeTgJH0e2KAOcT7nYptHULrVhfIcu
gS6icapiHLB6Ovb9yGWc+24dL/kBRTPU5p/j6zr3ylJznj+/7o37tFP/Nl6Ph/H6syF/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