# White space at the top of pages

If you set the 'Pagebreak' option to 'yes' in the 'Generate a PDF Creator' workflow action, you can sometimes end up with a white space at the top of one of your pages:

<div align="left"><figure><img src="/files/kxpcxWKu9HfjmQghE6Kq" alt="" width="563"><figcaption></figcaption></figure></div>

This is occurring because the plugin is trying to keep the elements next to each other, without breaking any elements across pages.

The solution to these white spaces is to break the target element down into smaller chunks. For example, rather than targeting the 'Group - Invoice' element highlighted below:

<figure><img src="/files/1st9BCIaamkMOGA5Pm5o" alt=""><figcaption></figcaption></figure>

You could target the 'Header' section and the 'Materials' section as two separate ID Attributes:

<figure><img src="/files/RvhbZNVa8vEIoH86HxZU" alt=""><figcaption></figcaption></figure>

This prevents any unwanted white space at the top of the page.

<figure><img src="/files/cJkiS4EqDxrhXyamTthN" alt=""><figcaption></figcaption></figure>

### Video tutorial

The below video tutorial goes through an example of how to deal with white space at the top of a PDF (relevant section is from 21:11):

{% embed url="<https://www.youtube.com/watch?t=1271s&v=gaFNz7UHDkI>" %}


---

# 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://cranford-tech.gitbook.io/pdf-creator/troubeshooting/white-space-at-the-top-of-pages.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.
