# Create print layouts and generate PDFs

## Create your first print layout <a href="#create-your-first-print-layout" id="create-your-first-print-layout"></a>

Use a print layout to turn an invoice record into a printable PDF.

{% stepper %}
{% step %}
**Open the print editor**

In the “Invoices” table, open an invoice record. Click the <i class="fa-print">:print:</i> printer icon in the top right. You can also open the three-dot menu and select **Print this record**.

The first time you do this in a table, Ninox opens an empty print layout.
{% endstep %}

{% step %}
**Add content to the layout**

Click **+ Insert** in the top bar and add the elements you need:

* Textboxes
* Images
* Data fields from your Ninox app
  {% endstep %}

{% step %}
**Adjust the layout elements**

* Click an element to highlight its frame. Then drag it to a new position.
* Drag the square handles to resize it.
* Click **Edit script** **<>** in the top right to update the content of a field or element.
  {% endstep %}

{% step %}
**Save your changes**

Click **Save changes** when you are finished with the layout.
{% endstep %}

{% step %}
**Name the first layout**

Enter a **Layout name** and click **Save**.
{% endstep %}
{% endstepper %}

### Create another print layout <a href="#create-another-print-layout" id="create-another-print-layout"></a>

You can save multiple print layouts in the same table.

Click the arrow next to **Save changes**. Select **Save as** to save the current layout under a different name. Then adjust it as needed.

### Edit existing print layouts <a href="#edit-existing-print-layouts" id="edit-existing-print-layouts"></a>

Existing print layouts stay editable at any time. When you open the print editor, you are already in edit mode.

If you move or change elements by mistake, use **Undo** or **Redo** next to **+ Insert**. There is no lock mode for layout elements.\
The same toolbar also includes buttons to **Cut**, **Copy**, and **Paste** elements.

Use the three-dot menu in the top right to arrange and align elements. It includes these options:

* **Send to front** and **Send to back**
* **Align left**, **center**, or **right**
* **Align top**, **middle**, or **bottom**
* **Distribute horizontally**

### Use the page settings panel <a href="#use-the-layout-settings-panel" id="use-the-layout-settings-panel"></a>

The right-side panel shows different settings depending on what is selected in the layout.

#### No field or element selected <a href="#nothing-selected" id="nothing-selected"></a>

Click into an empty area or the page margin to edit the page layout itself. You can set:

* Paper size
* Header and footer height
* Page margin width
* Whether image attachments from the record should be printed

#### Text, logic, or data field selected <a href="#text-logic-or-data-field-selected" id="text-logic-or-data-field-selected"></a>

If you select a text, logic, or data field element, but not an image field, you can set:

* The page area, such as flowing content or a repeating page background
* A fixed or automatic height
* The element position
* Inner padding between the value and the field border
* Background color, text color, border color, border width, and border radius
* Font and font size
* Text formatting such as bold, italic, or underline
* Text alignment
* Line height inside the field

#### Image field selected <a href="#image-field-selected" id="image-field-selected"></a>

If you select an image field, you can set:

* The page area, such as flowing content or a repeating page background
* A fixed or automatic height
* The element position
* Inner padding between the image and the field border
* Background, text and border settings

### Generate a PDF

After you create and adjust your print layout, click **Generate PDF** in the top right. By default, the PDF opens in a browser window.

Open the arrow next to **Generate PDF** to choose what to generate:

* **Generate PDF for selected record**
* **Generate PDF for all records**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ninox.com/getting-started/builder-getting-started/set-up-your-ninox-manually/create-print-layouts-and-generate-pdfs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
