DocusignApi-第三页上带有SignHere的附件选项卡 [英] DocusignApi - Attachment with SignHere tab on the third page

查看:106
本文介绍了DocusignApi-第三页上带有SignHere的附件选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#DocuSign SDK创建并发送附带文档的信封。该文档有多个页面,根据收件人的不同,SignHere选项卡会出现在文档中的不同位置。我使用了Anchor-Tabs来使SignHere选项卡正确定位。

I'm using the C# DocuSign SDK to create and send an envelope with a document attached to it. The document has multiple pages, with SignHere tabs appearing in various positions in the document, depending on the recipient. I used Anchor-Tabs to get the SignHere tab to position correctly.

当收件人收到文档时,我看到SignHere选项卡位于每页的底部直到找到锚文本的第一个匹配项。举例来说,锚文本在第三页上,文档长5页,SignHere选项卡将放在第1和2页的底部,然后正确地放在第3页上。第4和5页将没有SignHere标签(如预期)。

When the recipient receives the document, I see that the SignHere tab was placed at the bottom of every page till it finds the first match for the anchor text. Say for example, the anchor text was on page three, and the document was 5 pages long, SignHere tab would be placed on the bottom of pages 1 and 2, and then correctly placed on page 3. Pages 4 and 5 would have no SignHere tabs (as expected).

我在下面附加了示例/简化代码:

I have attached sample / simplified code below:

var envelopeDefinition = new EnvelopeDefinition
{
    EmailSubject = "Please sign this agreement.",
    Status = "sent",
    Documents = new List<Document>(),
    Recipients = new Recipients { Signers = new List<Signer>() }
};

envelopeDefinition.Documents.Add(new Document
{
    DocumentId = "1", Name = attachment.Name, DocumentBase64 = Convert.ToBase64String(attachment.Bytes),
});

envelopeDefinition.Recipients.Signers.Add(new Signer
{
    RecipientId = "1",
    Email = recipient.Email,
    Name = recipient.Name,
    Tabs = new Tabs
    {
        SignHereTabs = new List<SignHere>
        {
            new SignHere
            {
                RecipientId = "1",
                AnchorString = "||signhere||",
                AnchorXOffset = "1",
                AnchorYOffset = "1",
                AnchorIgnoreIfNotPresent = "true"
            }
        }
    }
});

var envelopesApi = new EnvelopesApi();
var envelopeSummary = envelopesApi.CreateEnvelope(accountId, envelopeDefinition);

我在 https://s3-us-west-2.amazonaws.com/sof-docusignq/Test_Attachment.pdf 和一个 https:// s3-us的完整附件的已签名版本-west-2.amazonaws.com/sof-docusignq/Test_Completed.pdf

我在做什么错了?

推荐答案

弄清楚了这一点。我使用PdfSharp从我的模板生成pdf,PdfSharp显然具有这种将内容分成页面的怪异方式。我改用EO Pdf,现在效果很好。

Figured this one out. I used PdfSharp to generate the pdf from my template, PdfSharp apparently has this weird way in which they split content to pages. I switched to EO Pdf and it works great now.

这篇关于DocusignApi-第三页上带有SignHere的附件选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆