首页 > 解决方案 > DocuSign Add image into the Dynamic content

问题描述

We are creating the Dynamic Content which are send in the DocuSign envelope.

Currently we are trying to add the image. But when we added the image in DocuSign envelope it is not getting render on DocuSign when customer get that pdf for sign.

Any one can suggest approach or any article that will be helpful.

标签: docusignapi

解决方案


您不能将来自外部来源的图像链接到签名者的签名中。这是一个安全问题。病毒和其他恶意软件可以通过图像插入。您必须将图像发送到 DocuSign。如果图像嵌入在 HTML 中,则必须创建包含内联图像的 HTML 的“平面”副本,而不是作为对网络上文件的引用。您仍然可以从您的代码动态生成它。您只需要下载图像的位并将它们包含在添加文档时发送到 DocuSign 的有效负载中。

在你的 HTML 中做这样的事情(首先用 base64 编码图像)

<img src="data:image/gif;base64,R0lGODlhDwAPAKECAAAAzMzM/////
wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4ML
wWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw=="
alt="Base64 encoded image" width="150" height="150"/>

推荐阅读