Search code examples
htmlpngdocusignapi

Adding an image into an .html envelope for signature via REST API


I am trying to include an image into the document that I am sending for signature but it will not render. The envelope I am sending is an .HTML file which Docusign then converts to PDF. Does Docusign support <img/> elements within an HTML envelope? Anyone have experience with this or know what my issue would be? I have tried the same image as PNG, JPG, and SVG...none of which render. Any feedback is much appreciated.

This is what my image tag looks like (with PNG):

<img src="./path/to/my/image.png" class="logo" alt="logo"/>

And what the image "renders" as in the PDF, which is not correct: docusign pdf image


Solution

  • While I did not get this to work when uploading an .html document to Docusign, what resolved the issue for me was converting the HTML into PDF (using wkhtmltopdf) and then uploading the PDF to Docusign. Hopefully this helps someone in the future.