# 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="https://302965189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ2Vt9Y2GXGNYGZT9VYhX%2Fuploads%2FR0wymH7jajZulfwl5VYA%2FScreenshot%202024-01-23%20at%2009.36.08.png?alt=media&#x26;token=86e68dad-67cf-470b-ba16-93156649204d" 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="https://302965189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ2Vt9Y2GXGNYGZT9VYhX%2Fuploads%2F3ZIm658qRuM2yNesuvwS%2FScreenshot%202024-01-23%20at%2010.02.37.png?alt=media&#x26;token=ac95b0eb-8dcd-4b4a-8082-50c7c181af95" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://302965189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ2Vt9Y2GXGNYGZT9VYhX%2Fuploads%2FbyDCcNI7r8XrfEZajcVt%2FScreenshot%202024-01-23%20at%2010.04.40.png?alt=media&#x26;token=f3adc71e-b879-4385-8fd2-5ec73d9601b6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://302965189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ2Vt9Y2GXGNYGZT9VYhX%2Fuploads%2FH5UHnrj0LMw2vQ5IfeGG%2FScreenshot%202024-01-23%20at%2010.05.53.png?alt=media&#x26;token=afd87be2-beb6-4037-a564-288d96126ff8" 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>" %}
