简体   繁体   English

DocuSign API自动将PDF字段转换为SecureFields

[英]DocuSign API auto convert PDF fields to SecureFields

When using the DocuSign API to create a new template, is there a way to automatically convert PDF fields to DocuSign SecureFields like there is when using the web console? 使用DocuSign API创建新模板时,是否可以像使用Web控制台一样自动将PDF字段转换为DocuSign SecureFields?

Posting to: 发布到:

https://demo.docusign.net/restapi/v2/accounts/{account_id}/templates

Request body: 要求正文:

{
        "emailsubject":"Please sign this",
        "templateId":"",
        "recipients":{
            "signers":[{
                "routingOrder":1,
                "roleName":"RoleOne",
                "recipientId":"1"
            }]
        },
        "envelopeTemplateDefinition":{
            "name":"test",
            "templateId":""
        },
        "documents":[{
            "documentId":"1",
            "name":"Agreement8_7_2012",
            "transformPdfFields":"true"
        }]
      }

I get a successful response and the template is created, just without any DocuSign SecureFields. 我得到了成功的响应,并且仅在没有任何DocuSign SecureField的情况下创建了模板。

First, try setting the defaultRecipient property to true for the recipient: 首先,尝试将收件人的defaultRecipient属性设置为true

"recipients":{
    "signers":[{
        "routingOrder":1,
        "roleName":"RoleOne",
        "recipientId":"1",
        "defaultRecipient":"true"
    }]
}

This will tell DocuSign that all PDF fields that are transformed into DocuSign fields should belong to that recipient. 这将告诉DocuSign所有转换为DocuSign字段的PDF字段都应属于该收件人。

If that change doesn't resolve your issue, then I'd suspect that perhaps it's the properties of the PDF fields that are preventing the transformation from being successful. 如果该更改不能解决您的问题,那么我可能怀疑,正是PDF字段的属性阻碍了转换的成功。 To troubleshoot, I'd suggest that you do the following: 要进行故障排除,建议您执行以下操作:

  • Verify that the fields in your PDF are amongst the Field Types that DocuSign will convert (ie: CheckBox, DateTime, ListBox, Numeric, Radio, Text, Signature, and Password). 验证PDF中的字段是否属于DocuSign将转换的字段类型(即CheckBox,DateTime,ListBox,Numeric,Radio,Text,Signature和Password)。

  • Examine field properties in the PDF. 检查PDF中的字段属性。 Seems like DocuSign may not transform PDF fields that have certain protective properties set (for example, Visible=false -- or for signature fields, Read-Only=true). 好像DocuSign可能不会转换设置了某些保护属性的PDF字段(例如,Visible = false-或对于签名字段,Read-Only = true)。 Perhaps start experimenting with various property settings on a single field, to see if changing field properties in the PDF enables DocuSign to transform that field. 也许开始在单个字段上尝试各种属性设置,以查看在PDF中更改字段属性是否使DocuSign能够转换该字段。

The "Transform PDF Fields" section [starting on page 105] of the DocuSign REST API Guide ( http://www.docusign.com/sites/default/files/REST_API_Guide_v2.pdf ) contains info about the field transformation process. DocuSign REST API指南( http://www.docusign.com/sites/default/files/REST_API_Guide_v2.pdf )的“转换PDF字段”部分[从第105页开始]包含有关字段转换过程的信息。

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

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