Document is Only one page pdf but signer got as 32 page decrypted document in his mail
Hi,
I have used below code to signing the document.
//APIURL - FUll URL address, including "api/rest/v5/". e.g. https://api.eu1.echosign.com/api/rest/v5/
AdobeSignNet.RestAPI api = new AdobeSignNet.RestAPI(APIURL, Access_Token);
AdobeSignNet.AdobeObject obj = new AdobeSignNet.AdobeObject(api);
//var agreements = await obj.GetAgreements();
//Create trasient document
var fileData = System.IO.File.ReadAllBytes(fullFilePath);
var transientDocumentResponse = await obj.AddDocument("Doc.pdf", fileData);
AdobeSignNet.AdobeSign.AgreementCreationInfo creationInfo = new AdobeSignNet.AdobeSign.AgreementCreationInfo();
creationInfo.documentCreationInfo = new AdobeSignNet.AdobeSign.DocumentCreationInfo();
//Document Creation Info
var documentCreationInfo = creationInfo.documentCreationInfo;
documentCreationInfo.name = agreementName;
documentCreationInfo.signatureType = AdobeSignNet.AdobeSign.SignatureTypeEnum.ESIGN;
documentCreationInfo.signatureFlow = "";
//FileInfo
documentCreationInfo.fileInfos = new List<AdobeSignNet.AdobeSign.FileInfo>();
var fileInfos = documentCreationInfo.fileInfos;
AdobeSignNet.AdobeSign.FileInfo fileInfo = new AdobeSignNet.AdobeSign.FileInfo(transientDocumentResponse.transientDocumentId);
fileInfos.Add(fileInfo);
//RecipientSetInfo
documentCreationInfo.recipientSetInfos = new List<AdobeSignNet.AdobeSign.RecipientSetInfo>();
var recipientSetInfos = documentCreationInfo.recipientSetInfos;
AdobeSignNet.AdobeSign.RecipientSetInfo recipientSetInfo = new AdobeSignNet.AdobeSign.RecipientSetInfo();
recipientSetInfo.recipientSetRole = AdobeSignNet.AdobeSign.RecipientRoleEnum.SIGNER;
recipientSetInfo.signingOrder = 1;
//RecipientSetMemberInfo https://www.adobe.io/apis/documentcloud/sign/docs/step-by-step-guide/get-the-access-token.html
AdobeSignNet.AdobeSign.RecipientSetMemberInfo setMemberInfo = new AdobeSignNet.AdobeSign.RecipientSetMemberInfo();
setMemberInfo.email = recipientEmail;
recipientSetInfo.recipientSetMemberInfos.Add(setMemberInfo);
recipientSetInfos.Add(recipientSetInfo);
var agreementCreationResponse = await obj.CreateAgreement(creationInfo);
return agreementCreationResponse;
I have sent only one page pdf but signer got 32 page decrypted document in his mail. What is the wrong in it?
Please help me on it.
Thanks & Regards
Poomani Sankaran
