生成信封后下载填充的pdf [英] Downloading populated pdf after generating envelope
问题描述
我们正在使用嵌入式签名功能。我们正在使用模板来生成用于嵌入式签名的信封。我们要求下载pdf(在签名之前)。该pdf文件应在信封中包含预先填充的数据。我们尝试通过以下方式使用rest API下载pdf,但它给出的是空白(无预填充值-如模板中所示)pdf。
https://demo.docusign.net/restapi/v2/accounts/ {我们的帐户ID} / envelopes / {envolopID} / documents / {documentId}
DocuSign的工作方式是,当您将数据字段和其他DocuSign选项卡分层放置到文档上时,它们不会成为文档的一部分,除非要由要在这些选项卡上执行操作的收件人签名。原因之一是因为有人可能在轮到他们签名时(如果他们有权)将初始数据更改为其他数据,因此当文档仍待处理时,预填充的值将不包含在下载中。 p>
但是,在信封仍处于待处理状态时,您仍然可以检索字段的值。由于标签始终是特定于收件人的,因此您需要下载为其配置的收件人的标签信息。
要下载此收件人的标签,包括初始的预先填充值您将进行以下api调用:
URL:
/ accounts / {accountId} / envelopes / {envelopeId} / recipients / {recipientId} / tabs
格式:
XML,JSON
HTTP方法:
GET
HTTP正文:
(空)
如果所讨论的信封中有一个数据字段(textTab),其值是测试数据 ,则响应如下所示:
textTabs:[
{
height: 11,
validationPattern:,
validationMessage:,
shared: false,
requ ireInitialOnSharedChange: false,
name: Text,
value:测试数据,
width:138,
required: true,
已锁定: false,
concealValueOnDocument: false,
disableAutoSize: false,
tabLabel:数据字段3,
粗体:假,
斜体:假,
下划线:假,
documentId: 1 ,
recipientId: 58576405-2f0b-45a4-998b-1cb81b769d22,
pageNumber: 1,
xPosition: 105,
yPosition: 499,
tabId: 7e1441bc-700e-43d4-b968-b7fa36887ee2
}
]
We are using embedded Signing feature. We are using templates for generating envelopes for embedded signing. We have a requirement for downloading pdf (before signing). This pdf should contain pre-populated data in envelope. We have tried to download pdf by using rest API as below, but it is giving blank (without prepopulated value - as in template) pdf. Is there any way to achieve the same?
https://demo.docusign.net/restapi/v2/accounts/{our account id}/envelopes/{envolopID}/documents/{documentId}
The way that DocuSign works is that when you layer data fields and other DocuSign tabs onto your documents they are not part of the document until it is signed by the recipients who are to take actions on those tabs. One of the reasons is because someone might change the initial data to something else when it is their turn to sign (if they have permissions to) so when the document is still pending the pre-populated values are not included in the download.
You can, however, still retrieve the values of your fields while the envelope is still pending. Since tabs are always specific to recipients you need to download tab information for whichever recipients they are configured for.
To download the tabs for this recipient including the initial pre-populated values you would make the following api call:
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/tabs
Formats:
XML, JSON
HTTP Method:
GET
HTTP Body:
(empty)
If the envelope in question had one data field (textTab) which has the value "test data", then the response would look like:
"textTabs": [
{
"height": 11,
"validationPattern": "",
"validationMessage": "",
"shared": "false",
"requireInitialOnSharedChange": "false",
"name": "Text",
"value": "test data",
"width": 138,
"required": "true",
"locked": "false",
"concealValueOnDocument": "false",
"disableAutoSize": "false",
"tabLabel": "Data Field 3",
"bold": "false",
"italic": "false",
"underline": "false",
"documentId": "1",
"recipientId": "58576405-2f0b-45a4-998b-1cb81b769d22",
"pageNumber": "1",
"xPosition": "105",
"yPosition": "499",
"tabId": "7e1441bc-700e-43d4-b968-b7fa36887ee2"
}
]
这篇关于生成信封后下载填充的pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!