> For the complete documentation index, see [llms.txt](https://cranford-tech.gitbook.io/pdf-creator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cranford-tech.gitbook.io/pdf-creator/troubeshooting/white-space-at-the-top-of-pages.md).

# 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>" %}
