> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/template-builder/template-editor/how-to-create-a-structured-template.md).

# ​How to Create a Structured Template

### When to use a structured document

A structured document contains editable text, static content, and dynamic fields.\
Use it when you need to build the document directly in the editor and control both content and field placement.

Choose the document type that matches your goal:

* **Structured** — create editable content with dynamic fields
* **PDF** — keep a fixed layout from an uploaded PDF file
* **External document** — attach a file to the template without rebuilding it in the editor

{% hint style="info" %}
Use a structured document when you need full control over text, formatting, and dynamic fields in the editor.
{% endhint %}

### Add a structured document

{% columns %}
{% column width="58.333333333333336%" %}

1. Open the left documents panel.
   * If the panel is collapsed, click the **Documents** ![](/files/BRzfkR3Ny6XkhsLaDqbw) icon to expand it.
2. Click the <img src="/files/ekbMrgh2yIWE1HFR3sA3" alt="" data-size="line"> button.
3. Select **Structured**.
4. The new structured document appears in the document list and opens in the editor.
5. Add content and fields.
   {% endcolumn %}

{% column width="41.666666666666664%" %}

<figure><img src="/files/3NPJwO3eHAXzy824O1uF" alt="" width="127"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Duplicate a structured document

{% columns %}
{% column %}

1. In the document header, open the context menu.
2. Click the <img src="/files/AZCYBszuyqcuOhTpt3iu" alt="" data-size="line"> icon.

DocStudio creates a copy of the current structured document with its content and fields.
{% endcolumn %}

{% column %}

<figure><img src="/files/jK5jxqpOLgBut2pPRaoi" alt="" width="107"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Delete a structured document

{% columns %}
{% column %}

1. In the document header, open the context menu.
2. Click the <img src="/files/HJaoHCVeHouBi8aE3uSb" alt="" data-size="line"> icon.

This action removes the structured document from the current template.
{% endcolumn %}

{% column %}

<figure><img src="/files/84p6H3zG1crCgLfdIzEj" alt="" width="107"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% hint style="warning" %}
Delete a structured document only if you no longer need its content and fields in the template.
{% endhint %}

### Related topics

* [Template Editor Interface Overview](/user/template-builder/template-editor/template-editor-interface-overview.md)
* [How to Add or Edit Images in a Template](/user/template-builder/template-editor/how-to-add-or-edit-images-in-a-template.md)
