Do not split title and first paragraph line for PDF export

John Smith April 26, 2022

Hi,

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 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:

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events