Skip to main content

I’ve placed the anchor tags for my document in a 3 column table.  The first cell has anchor tag \c1\ for recording a Text Tab value for signer’s company, the second cell has anchor tag \n1\ for recording the signer’s full name, and the last cell has anchor tag \s1\ for recording the signature.

The problem is that the displayed value for the anchor tags are not wrapping within the cells of the table.  So if the company names or signer’s names are long, they run into the values of the other cells causing the text to overlap. 

 

Is there a way to force the injected text to wrap in the cell and respect the layout where the anchor tag is defined?

 

I’ve tried to specify the “width” property to 100 and “anchorUnits” property to “pixels” (also tried “inches”), but it doesn’t seem to affect anything:

"recipients": {
    …
    "signers": [
      {
       ...
        “Name”: “Sample Name”
        "tabs": {
          "signHereTabs": [
            {
              "anchorString": "\s1\",
              "anchorUnits": "pixels",
              "width": 100,
              "required": "true",
            }
          "fullNameTabs": [
            {
              "anchorString": "\n1\",
              "anchorUnits": "pixels",
              "width": 100,
              "required": "true",
            }
          ],
          "textTabs": [
            {
              "anchorString": "\c1\",
              "anchorUnits": "pixels",
              "width": 100,
              "required": "true",
              "value": "Here is a very long company name LLC",
            }
          ]
      }
}

@Redbird19 

yes, but not with the tabs you’re using as-is. DocuSign tabs sit on top of the PDF at absolute positions. They don’t “know” about your Word table cells, so long values will run right past cell borders unless you explicitly bound them. Width alone won’t help unless you also turn off auto‑sizing, and SignHere ignores width entirely.

If you can start from a PDF with real form fields sized to each cell, DocuSign can transform those fields into tabs and keep the exact boxes you designed. Make the PDF text fields multi‑line and you’ll get wrapping without guessing pixel sizes.


Hi ​@JohnSantos,

 

Thanks for the response.  How do I turn off auto-sizing?  I didn’t see an option in the API documentation.  Or does just providing a width and height do that?


@Redbird19 

add "disableAutoSize": "true" on your text-like tabs.

https://javadoc.io/doc/com.docusign/docusign-esign-java/2.0.2/com/docusign/esign/model/Text.html


Hi ​@JohnSantos,

 

Thanks for the info!  I wound up using Text Tabs with a set width and height and got the text to wrap accordingly.  I  also increased the table column width and height to accommodate some larger data values.  Testing shows it working well with varying lengths of data.  It’s still not perfect as there could still be super long values that cause overlaps, but I think it’s acceptable as it should work in the vast majority of cases.

 

Thanks again!