Choose page structure - PDF export

Hello everyone,

I’ve searched both the documentation and online but couldn’t find a solution to my issue.

For my work, I frequently export notes to PDF. I’ve tried several plugins, but none of them allow me to control the page layout.

Specifically, sometimes I end up with an H1 or H2 heading positioned at the very bottom of a page (for example, page 1), whereas I would prefer it to start at the very top of the next page (page 2).

Does anyone know of a way to achieve this?

Thanks a lot! <3

Dam.

This can be useful: Page breaks for PDF (again)

1 Like

On mobile at the moment, but have a look at these posts:

1 Like

Hey @JLDiaz and @ariehen.

I’ll try this out. The only issue I see is that sometimes there can be two H1 tags on the same page, and with this technique, it won’t work.

Thank you for time and precious advices.

Cya !

Well, my technique consisted of you explicitly marking where you want page breaks by writing three dashes in the markdown (which are previewed as a solid line but converted to invisible page breaks in the PDF).

1 Like