Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docusignapi 添加选项卡以显示用户可以';登录Docusign API时是否使用API上载pdf进行更改?_Docusignapi - Fatal编程技术网

Docusignapi 添加选项卡以显示用户可以';登录Docusign API时是否使用API上载pdf进行更改?

Docusignapi 添加选项卡以显示用户可以';登录Docusign API时是否使用API上载pdf进行更改?,docusignapi,Docusignapi,为了在文档上显示静态文本(如收费金额、客户名称、公司名称等),用户在签署文档时无法更改,并且应该在从Docusign下载的签名文档中显示,我在本演练中使用了文档上的请求签名api,我应该在此添加什么代码。 提前谢谢 string xmlBody = "<envelopeDefinition xmlns=\"http://www.docusign.com/restapi\">" + "<emailSubject>

为了在文档上显示静态文本(如收费金额、客户名称、公司名称等),用户在签署文档时无法更改,并且应该在从Docusign下载的签名文档中显示,我在本演练中使用了文档上的请求签名api,我应该在此添加什么代码。 提前谢谢

string xmlBody =
                "<envelopeDefinition xmlns=\"http://www.docusign.com/restapi\">" +
                "<emailSubject>DocuSign API - Signature Request on Document</emailSubject>" +
                "<status>sent</status>" +   // "sent" to send immediately, "created" to save as draft in your account
                // add document(s)
                "<documents>" +
                "<document>" +
                "<documentId>1</documentId>" +
                "<name>" + documentName + "</name>" +
                "</document>" +
                "</documents>" +
                // add recipient(s)
                "<recipients>" +
                "<signers>" +
                "<signer>" +
                "<recipientId>1</recipientId>" +
                "<email>" + recipientMail + "</email>" +
                "<name>" + recipientName + "</name>" +
                "<tabs>" +
                //myTestCodeStart
                "<tab>" +
                "<DocumentID>1</DocumentID>" +
                "<RecipientID>1</RecipientID>" +
                "<PageNumber>1</PageNumber>" +
                "<XPosition>100</XPosition>" +
                "<YPosition>100</YPosition>" +
                "<ScaleValue>1</ScaleValue>" +
                "<Type>Custom</Type>" +
                "<Name>TestName</Name>" +
                "<TabLabel>LabelTest</TabLabel>" +
                "<Value>TestValue</Value>" +
                "<CustomTabType>Text</CustomTabType>" +
                "<CustomTabWidth>42</CustomTabWidth>" +
                "<CustomTabHeight>11</CustomTabHeight>" +
                "<CustomTabRequired>true</CustomTabRequired>" +
                "<CustomTabLocked>true</CustomTabLocked>" +
                "<CustomTabDisableAutoSize>false</CustomTabDisableAutoSize>" +
                "<CustomTabValidationPattern/>" +
                "<CustomTabValidationMessage/>" +
                "<RequireInitialOnSharedTabChange>false</RequireInitialOnSharedTabChange>" +
                "<ConcealValueOnDocument>false</ConcealValueOnDocument>" +
                "<Bold>false</Bold>" +
                "<Italic>false</Italic>" +
                "<Underline>false</Underline>" +
                "</tab>" +
                //myTestCodeEnd
                "<signHereTabs>" +
                "<signHere>" +
                "<xPosition>350</xPosition>" + // default unit is pixels
                "<yPosition>517</yPosition>" + // default unit is pixels
                "<documentId>1</documentId>" +
                "<pageNumber>1</pageNumber>" +
                "</signHere>" +
                "</signHereTabs>" +
                "</tabs>" +
                "</signer>" +
                "</signers>" +
                "</recipients>" +
                "</envelopeDefinition>";
字符串xmlBody=
"" +
“DocuSign API-文档签名请求”+
“已发送”+/“已发送”可立即发送,“已创建”可在您的帐户中另存为草稿
//添加文档
"" +
"" +
"1" +
“”+documentName+“”+
"" +
"" +
//添加收件人
"" +
"" +
"" +
"1" +
“”+recipientMail+“”+
“”+recipientName+“”+
"" +
//myTestCodeStart
"" +
"1" +
"1" +
"1" +
"100" +
"100" +
"1" +
“定制”+
“测试名称”+
“标签测试”+
“测试值”+
“文本”+
"42" +
"11" +
“对”+
“对”+
“假”+
"" +
"" +
“假”+
“假”+
“假”+
“假”+
“假”+
"" +
//myTestCodeEnd
"" +
"" +
“350”+//默认单位为像素
“517”+//默认单位为像素
"1" +
"1" +
"" +
"" +
"" +
"" +
"" +
"" +
"";

要使信封中的选项卡值为只读,请将该选项卡的锁定属性设置为

<locked>true</locked>
true
例如,在“创建信封”请求中包含此XML将在文档中放置只读文本123456(在指定的X/Y位置):


账号
假的
帐号
123456
100
200
arial
12
1.
1.

(您的代码显示您正在使用——这在REST API中不是有效的元素名称。似乎您应该使用,正如我在上面的示例中所示。)

不工作,它只显示与以前相同的签名选项卡。尝试了此操作。尝试将documentId和pageNumber添加到textTab的XML中(如我现在在更新的答案中所示). 如果这没有帮助,那么请更新您的问题以发布发送到服务器的完整XML请求的跟踪,而不是发布组装XML的代码。您可以使用Fiddler或类似的工具轻松地生成XML请求的跟踪。查看实际的XML请求主体(而不仅仅是您的代码)将提供真正解决此问题所需的信息。谢谢。当我通过发送文档请求签名时,它不起作用,并告诉我错误的数据作为响应。当我在模板中使用它时,它可以工作:)。
<textTabs>
   <textTab> 
     <tabLabel>AcctNumber</tabLabel>
     <locked>false</locked>   
     <name>Account Number</name> 
     <value>123456</value>
     <xPosition>100</xPosition>
     <yPosition>200</yPosition>
     <font>arial</font>
     <fontSize>12</fontSize>
     <documentId>1</documentId>
     <pageNumber>1</pageNumber>
   </textTab>
</textTabs>