如何在 Docusign 中实现 Signer Attachment?
How to implement Signer Attachment in Docusign?
我对 docusign 的要求是我需要实施签名者附件,[https://github.com/docusign/docusign-soap-sdk/wiki/Code-Walkthrough-_-Signer-Attachments]
中提到了相同的场景
但我不确定如何使用 C# 中的代码实现。由于不确定如何将其附加到信封上?
我想给某人发一份合同书让他们签字,并要求他们附上一些文件,当所有这些都完成后,这些文件应该发送到我的邮箱。
有人知道我是否可以用 docusign 实现吗?
下面是我们如何在使用 C# SDK 时做到这一点
创建签名者对象
Signer signer = new Signer();
signer.Name = recipientName;
signer.Email = recipientEmail;
signer.RecipientId = "1";
然后创建附件选项卡
signer.Tabs.SignerAttachmentTabs = new List<SignerAttachment>();
之后我们需要添加一个附件
SignerAttachment signDoc = new SignerAttachment();
signDoc.TabLabel = "Attach your Other Doc";
signDoc.DocumentId = "1";
signDoc.TabId = "1";
signDoc.PageNumber = "1";
最后我们将它添加到选项卡
signer.Tabs.SignerAttachmentTabs.Add(signDoc);
之前的条目还不错...我最终让它工作了。但是下面的这段代码在生产中是可靠的,而且效果很好!它还使用锚字符串。
EnvelopeDefinition env = new EnvelopeDefinition();
env.EmailSubject = "Please sign this document set";
Document doc4 = new Document
{
DocumentBase64 = doc4PdfBytes,
Name = "Voided Check Attachment", // can be different from actual file name
FileExtension = "pdf",
DocumentId = "4"
};
env.Documents = new List<Document> { doc4 };
SignerAttachment signAttachDoc = new SignerAttachment
{
TabLabel = "Attach your voided check",
DocumentId = "1",
TabId = "1",
PageNumber = "1",
AnchorString = "/at1/",
AnchorUnits = "pixels",
AnchorXOffset = "0",
AnchorYOffset = "0",
AnchorIgnoreIfNotPresent = "false",
};
Tabs signer1Tabs = new Tabs
{
SignerAttachmentTabs = new List<SignerAttachment> { signAttachDoc }
};
signer1.Tabs = signer1Tabs;
Recipients recipients1 = new Recipients
{
Signers = new List<Signer> { signer1 }
};
env.Recipients = recipients1;
我对 docusign 的要求是我需要实施签名者附件,[https://github.com/docusign/docusign-soap-sdk/wiki/Code-Walkthrough-_-Signer-Attachments]
中提到了相同的场景但我不确定如何使用 C# 中的代码实现。由于不确定如何将其附加到信封上?
我想给某人发一份合同书让他们签字,并要求他们附上一些文件,当所有这些都完成后,这些文件应该发送到我的邮箱。
有人知道我是否可以用 docusign 实现吗?
下面是我们如何在使用 C# SDK 时做到这一点
创建签名者对象
Signer signer = new Signer();
signer.Name = recipientName;
signer.Email = recipientEmail;
signer.RecipientId = "1";
然后创建附件选项卡
signer.Tabs.SignerAttachmentTabs = new List<SignerAttachment>();
之后我们需要添加一个附件
SignerAttachment signDoc = new SignerAttachment();
signDoc.TabLabel = "Attach your Other Doc";
signDoc.DocumentId = "1";
signDoc.TabId = "1";
signDoc.PageNumber = "1";
最后我们将它添加到选项卡
signer.Tabs.SignerAttachmentTabs.Add(signDoc);
之前的条目还不错...我最终让它工作了。但是下面的这段代码在生产中是可靠的,而且效果很好!它还使用锚字符串。
EnvelopeDefinition env = new EnvelopeDefinition();
env.EmailSubject = "Please sign this document set";
Document doc4 = new Document
{
DocumentBase64 = doc4PdfBytes,
Name = "Voided Check Attachment", // can be different from actual file name
FileExtension = "pdf",
DocumentId = "4"
};
env.Documents = new List<Document> { doc4 };
SignerAttachment signAttachDoc = new SignerAttachment
{
TabLabel = "Attach your voided check",
DocumentId = "1",
TabId = "1",
PageNumber = "1",
AnchorString = "/at1/",
AnchorUnits = "pixels",
AnchorXOffset = "0",
AnchorYOffset = "0",
AnchorIgnoreIfNotPresent = "false",
};
Tabs signer1Tabs = new Tabs
{
SignerAttachmentTabs = new List<SignerAttachment> { signAttachDoc }
};
signer1.Tabs = signer1Tabs;
Recipients recipients1 = new Recipients
{
Signers = new List<Signer> { signer1 }
};
env.Recipients = recipients1;