-2

我对 docusign 的要求是我需要实现签名者附件,并且在 [ https://github.com/docusign/docusign-soap-sdk/wiki/Code-Walkthrough-_-Signer-Attachments ]中提到了相同的场景

但我不确定如何使用 C# 中的代码实现。不确定如何将其附加到信封上?

我想给某人发送一份合同书来签署,并要求他们附上一些文件,当所有这些都完成后,这些文件应该发送到我的电子邮件中。

任何人都知道我是否可以通过docusign实现它?

4

2 回答 2

1

以下是我们在使用 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);
于 2016-04-06T06:42:36.617 回答
1

以前的条目还不错......我最终让它工作了。但是下面的这段代码是可靠的,在生产中,而且效果很好!它还使用锚字符串。

        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;
于 2021-09-10T16:43:27.287 回答