# PDF Label Connector incorrectly returns data from xml (multi-line function not working)

**URL:** <https://community.cdata.com/t/pdf-label-connector-incorrectly-returns-data-from-xml-multi-line-function-not-working/695>\
**Category:** CData Arc\
**Tags:** question, cdata-arc, connector\
**Created:** [April 17, 2024, 11:55am UTC](https://community.cdata.com/t/pdf-label-connector-incorrectly-returns-data-from-xml-multi-line-function-not-working/695 "2024-04-17T11:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdiSupportGir](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@EdiSupportGir](https://community.cdata.com/u/EdiSupportGir)\
**Post date:** [April 17, 2024, 11:55am UTC](https://community.cdata.com/t/pdf-label-connector-incorrectly-returns-data-from-xml-multi-line-function-not-working/695/1 "2024-04-17T11:55:38Z")

</div>

Hello,

A PDF file was made from the XLSX document. Then I created a PDF template with form fields (Adobe Acrobat), using the “Text field” function Multi-line. By filling in the form manually, the text in the field moves to a new line, but the text taken from the XML doesn’t move to a new line. Why the Multi-line functionality doesn’t&nbsp;work in CData Arc?

 ![fbb2cbec-0a53-41fd-b399-dbfb58372f11.png](https://us1.discourse-cdn.com/cdata/original/2X/e/ed95b071e5dc2ac297c3b5f77ec4c0889585473a.png)

```auto
 

```

[OrderPDF\_Template3.pdf](https://community.cdata.com/uploads/short-url/6IQSSBmfgIzfLnNrPTS8AxCZyrW.pdf) (852 KB)  
[812\_FI.xml](https://community.cdata.com/uploads/short-url/cVmUYewQvNiGLsw2gpOdYRx3LM0.xml) (1.51 KB)

---

<div class="post-metadata">

**Author:** ![James\_B](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/james_b/32/1688_2.png) [@James\_B](https://community.cdata.com/u/James_B)\
**Post date:** [April 17, 2024, 6:43pm UTC](https://community.cdata.com/t/pdf-label-connector-incorrectly-returns-data-from-xml-multi-line-function-not-working/695/2 "2024-04-17T18:43:36Z")

</div>

Unfortunately, support for multiline labels is not an intended feature of the PDF Label connector in CData Arc - specifically, the resizing of the font as the data approaches the length of the cell.

You can pass in XML with multiple lines, and the line breaks will be preserved when the cell is rendered:

 ![5b843301-3a6e-4ea0-bec8-5d057e4670d0.png](https://us1.discourse-cdn.com/cdata/original/2X/2/2bc0d708fe973165879d12565724a7bdf8fc444c.png)

But the PDF Label connector does not support an automatic fit to the label parameters at this time.

I’ve opened this as a feature suggestion with our development team - I am not certain if this is something that we can control in the way the PDF is rendered, but if it is possible to auto-format the cell, we may do so in a future update of CData Arc.

---

<div class="post-metadata">

**Author:** ![EdiSupportGir](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@EdiSupportGir](https://community.cdata.com/u/EdiSupportGir)\
**Post date:** [April 24, 2024, 10:12am UTC](https://community.cdata.com/t/pdf-label-connector-incorrectly-returns-data-from-xml-multi-line-function-not-working/695/3 "2024-04-24T10:12:31Z")

</div>

Thanks for your answer. Yes, I have&nbsp;split text in an XML field into multiple lines.
