I am pdfing a Confluence page and want to keep the heading with the text that follows. Right now, the heading appears at the bottom of the page and the text at the top of the next page. How can I prevent that?
Welcome to the community, @Catherine Anderson ! I will assume you are using the builtin PDF export function. What you need to do is to edit/update the CSS stylesheet for the PDF export and add the following property to your headings,
page-break-after: avoid;
For example:
h1 {
margin-top: 20pt;
margin-bottom: 10pt;
font-size: 20pt;
page-break-after: avoid;
}
It may not always work, but it can help with keeping headings from separating across a page.
Details on editing the CSS are here:
https://support.atlassian.com/confluence-cloud/docs/customize-exports-to-pdf/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.