> For the complete documentation index, see [llms.txt](https://guide.docmaker.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.docmaker.co/features/create-pdf-from-docx-template/build-your-docx-template/loops/adding-rows-into-a-table.md).

# Adding rows into a table

docMaker can add rows to your document's tables. It will add as many rows as you provide data in the JSON.

{% hint style="info" %}
The beauty of it, is that page numbers will increment automatically, and page breaks will be perfectly fitted !&#x20;
{% endhint %}

Example data :

&#x20;

```plaintext
{"orderLines": [
 {
   "item_name": "Shirt",
   "item_price": 88,
   "item_quantity" : 2
 },
 {
   "item_name": "Shoes",
   "item_price": 123
   "item_quantity" : 1
 },
 {
   "item_name": "Dress",
   "item_price": 345,
   "item_quantity" : 4
 }
]
}
```

&#x20;

<table data-header-hidden><thead><tr><th></th><th width="78.33333333333331"></th><th></th></tr></thead><tbody><tr><td><strong>Template</strong></td><td> </td><td><strong>Result</strong></td></tr><tr><td><img src="/files/EmOzMagKB6lafbD98AG7" alt=""></td><td><p><span data-gb-custom-inline data-tag="emoji" data-code="27a1">➡️</span></p><p> </p></td><td><img src="/files/Jwu6GJcJzs9vpEP7MKKa" alt="" data-size="original"></td></tr></tbody></table>

&#x20;
