繁体   English   中英

如何在 Docusign 中实现签名者附件?

[英]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;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM