how to use it because i’m receiving the format like "GIF89aA\u0002�\u0000�\u0000\u0000\u0000\u0000\u0000\u0000\u00003\u0000\u0000f\u0000 ...”
how to consume on frontend to show image ?
how to use it because i’m receiving the format like "GIF89aA\u0002�\u0000�\u0000\u0000\u0000\u0000\u0000\u0000\u00003\u0000\u0000f\u0000 ...”
how to consume on frontend to show image ?
Why do you want to download the recipient signature from Docusign eSignature?
The recipient signature is part of the signed documents and also included in the Certificate of Completion. There is no use to download a signature as it is only valid in context of the signed documents and not standalone.
because on my app interface i want show it as the sign of completion of that step
@mrave
i’m facing issue with downloading the pdf from the docusign sdk .
getting the html template page from the sdk function response.
const document = await axios.get(
`${dsConfig.oauthBasePath}/restapi/v2.1/accounts/{accountId}/envelopes/{envelopId}/documents/1`,
{
headers: {
Authorization: 'Bearer ' + token,
"Content-Type": "application/pdf",
“Content-Disposition”: “attachment; filename=signed_document.pdf”
}
}
)
return document.data;
because on my app interface i want show it as the sign of completion of that step
In that case you can get the recipient signature via the following API call:
https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/getrecipientsignature/
i already tried this api . and it returns
{
"signatureId": "21749d84-0a96-4c65-a7f9-b7d81ea9dd4a",
"signatureFont": "7_DocuSign",
"signatureType": "rubberstamp",
"signatureImageUri": "/envelopes/7f12cca6-b052-4db1-b301-3a3d28ac318b/recipients/1/signature_image",
"signatureInitials": "AK",
"initialsImageUri": "/envelopes/7f12cca6-b052-4db1-b301-3a3d28ac318b/recipients/1/initials_image",
"signature150ImageId": "aa128248-74ae-4136-b7f0-a66734f764d2",
"initials150ImageId": "b56091a6-bef3-4ffa-93de-3e792d5b7e9b",
"signatureName": "Aman Kazi",
"createdDateTime": "2024-07-09T06:40:11.6400000Z",
"adoptedDateTime": "2024-07-09T06:40:11.6570000Z"
}
does not returns any base64 or image/pdf. just uri how to call those uri
in return of signatureImage api it returns
<!DOCTYPE html>
<html lang="en" class="account-server">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0">
<title>DocuSign</title>
<link rel="icon"
href="https://docucdn-a.akamaihd.net/olive/images/2.64.0/global-assets/ds-icons-favicon-default-64x64.svg"
type="image/svg+xml">
<link rel="canonical" href="https://account-d.docusign.com/" />
<base href="/">
<script type="text/javascript" nonce="zl12y/Ipvcpy7d4vcyYB/erFwmjRf0ziAx6wCkol4zA=">
window.__KAZMON_CONFIG__ = {
buildVersion: "24.2.200.18802",
environment: "DEMO",
instrumentationKey: "88d193ed-7206-4e34-975a-193a4fd08e36"
};
window.__NEW_ROOT_API__ = "True";
var FixtureHelper = {};
</script>
<!-- 24.2.200.18802 DA1DFE179 1a6364af-894e-4516-b1f7-3c54e6eb6c53 -->
</head>
<body class="site-content">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<form name="fixtureForm">
<input id="fixtureInput" type="hidden" value="{&quot;settings&quot;:{&quot;traceToken&quot;:&quot;1a6364af-894e-4516-b1f7-3c54e6eb6c53&quot;,&quot;siteRoot&quot;:&quot;https://account-d.docusign.com/&quot;,&quot;forgotPasswordUri&quot;:&quot;https://account-d.docusign.com/forgotpassword&quot;,&quot;flowSubmissionUris&quot;:{&quot;oAuth&quot;:&quot;/oauth/auth&quot;,&quot;sso&quot;:&quot;/saml2/login/sp&quot;,&quot;username&quot;:&quot;/username&quot;,&quot;password&quot;:&quot;/password&quot;,&quot;web&quot;:&quot;/web/login&quot;,&quot;signUp&quot;:&quot;/signup&quot;,&quot;securityKeyLogin&quot;:&quot;/securitykeylogin&quot;,&quot;resourceCredentialSecurityKeyCreation&quot;:&quot;/resources/v1/manage/security-key/create&quot;,&quot;resourceCredentialSecurityKeyLogin&quot;:&quot;/resources/v1/manage/security-key/login&quot;},&quot;allowGetBrowserFingerprint&quot;:true,&quot;allowNewI18Library&quot;:true,&quot;renderInkLoginApp&quot;:true,&quot;assetPreloaderUrl&quot;:null,&quot;pseudoLocalizationEnabled&quot;:false,&quot;rebrandingEnabled&quot;:true},&quot;stateData&quot;:{&quot;state&quot;:&quot;username&quot;,&quot;oAuthLoginHintQS&quot;:null,&quot;oAuthLoginHintCookie&quot;:null,&quot;usernamePostAction&quot;:null,&quot;logoBytes&quot;:null,&quot;data&quot;:null},&quot;error&quot;:null}" />
<input name="__RequestVerificationToken" type="hidden" value="AUwqVP9wPY8N5dPAE6eT2DcAAAAA0" />
</form>
</body>
<script src="/ReactApp/src/vendor/html-domparser.js"></script>
<script src="/ReactApp/dist/bundle.js?version=24.2.200.18802"></script>
</html>
how to consume it to load the file
The signature image API call is described here and should return the image:
for this api I’m getting response in stream of byte.
challenge is that how to convert it to useful format so i can render it to ui ?
implementation of sdk at service level is as bellow.
// js file --->
const envelopesApi = new EnvelopesApi(this.apiClient);
const response = await envelopesApi.getRecipientSignatureImage(dsConfig.accountId, envelopeId, '1');
return response
---/
And same for get document API:-
https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopedocuments/get/
it returns whole html page.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.