docusignapi - 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.
解决方案
您不能将来自外部来源的图像链接到签名者的签名中。这是一个安全问题。病毒和其他恶意软件可以通过图像插入。您必须将图像发送到 DocuSign。如果图像嵌入在 HTML 中,则必须创建包含内联图像的 HTML 的“平面”副本,而不是作为对网络上文件的引用。您仍然可以从您的代码动态生成它。您只需要下载图像的位并将它们包含在添加文档时发送到 DocuSign 的有效负载中。
在你的 HTML 中做这样的事情(首先用 base64 编码图像)
<img src="data:image/gif;base64,R0lGODlhDwAPAKECAAAAzMzM/////
wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4ML
wWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw=="
alt="Base64 encoded image" width="150" height="150"/>
推荐阅读
- xaml - 当用户键入时,始终将某个字符添加到 ENTRY
- next.js - 使用操作/checkout@v2 时保留构建文件夹
- javascript - Kotlin 喜欢 JavaScript 中的作用域函数(让、也、应用、运行)?
- html - 在 React Native 中显示带有“图像作为 http 请求”的 html
- python - Lambda 函数不调用 cloudtrail 日志
- c++ - 旧的 C++ OpenGL 编程实现(即没有着色器)是否使用 GPU?
- javascript - 在这种情况下如何访问局部变量的值?
- asp.net-mvc - 如何在另一个项目中访问内部接口方法
- objective-c - 如何使用颤振在 iOS 上以编程方式显示 Airplay 面板
- spring - 错误:表上的 UPDATE 或 DELETE 语句