简体   繁体   English

如何在docusign的文档中添加图像

[英]How to add image in a documents in docusign

Am trying to add image in my docusign documents via Curl.我正在尝试通过 Curl 在我的文档签名文档中添加图像。

I think i have to use signerAttachment parameter.我想我必须使用signerAttachment参数。

Assuming my image is http://sample.com/myphoto.png .假设我的图像是http://sample.com/myphoto.png Where do I add it as per code below.根据下面的代码,我在哪里添加它。 Or what is the best solution to achieve that或者实现这一目标的最佳解决方案是什么

"signerAttachmentTabs": [
                {
                  "name": "sample string 1",
                  "tabLabel": "sample string 2",
                  "scaleValue": 1.1,
                  "optional": "sample string 3",
                  "documentId": "sample string 4",
                  "recipientId": "sample string 5",
                  "pageNumber": "sample string 6",
                  "xPosition": "sample string 7",
                  "yPosition": "sample string 8",
                  "anchorString": "sample string 9",
                  "anchorXOffset": "sample string 10",
                  "anchorYOffset": "sample string 11",
                  "anchorUnits": "sample string 12",
                  "anchorIgnoreIfNotPresent": "sample string 13",
                  "anchorCaseSensitive": "sample string 14",
                  "anchorMatchWholeWord": "sample string 15",
                  "anchorHorizontalAlignment": "sample string 16",
                  "tabId": "sample string 17",
                  "templateLocked": "sample string 18",
                  "templateRequired": "sample string 19",
                  "conditionalParentLabel": "sample string 20",
                  "conditionalParentValue": "sample string 21",
                  "customTabId": "sample string 22",
                  "mergeField": {},
                  "tooltip": "sample string 23",
                  "tabOrder": "sample string 24",
                  "tabGroupLabels": [
                    "sample string 1"
                  ]
                }
              ],

So, you can add an image just like you add any other document, be it a PDF or HTML or anything.因此,您可以像添加任何其他文档一样添加图像,无论是 PDF 还是 HTML 或任何其他文档。 The image will be in its own page, not embedded in some other doc.该图像将位于其自己的页面中,而不是嵌入在其他文档中。

Looking at the image you posted, you may be trying to embed this inside an existing document, and that cannot be done using attachments.查看您发布的图像,您可能正在尝试将其嵌入到现有文档中,而使用附件无法做到这一点。

You could use a special type of tab called drawing tab , which allows for embedding drawings, graphics, images etc. inside a document.您可以使用一种特殊类型的选项卡,称为绘图选项卡,它允许在文档中嵌入绘图、图形、图像等。 I haven't tried to set the content of such tab via the API, but presumably it should be possible to do so.我没有尝试通过 API 设置此类选项卡的内容,但大概应该可以这样做。

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

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