Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Do not split title and first paragraph line for PDF export


Can I add some "non-breaking line" between title (heading) and next paragraph?

When some page is exported to PDF, sometimes heading left on page 2, and then paragraph for it starts on page 3.


Is it possible to stick heading to first line of paragraph, make them non-breakable?

1 answer

0 votes
Bill Bailey Community Leader Apr 26, 2022

Hello @John Smith , welcome to the Community.

Not sure if you are on Cloud or Server/DC, or if you are trying to use the native PDF export of a third-party plugin, but generally you can control this via the CSS stylesheet that controls the look and feel of the PDF export.

You can try writing a rule similar to this:

        page-break-before: auto;
        page-break-after: avoid;

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

70 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you