The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove the blank space when exporting several pages at a time

Sergio Lema
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2025

Hello, 

 

I am trying to get rid of the blank spaces when exporting several pages at a time and the content of these pages is not enough to fill the whole A4 page.

In example, an introduction page with only a title and a brief description of the site. When exporting this into PDF, Confluence generates a page with the title and just one or two lines of content. So if other pages are exported within the same document, we will have independent pages for each confluence page, instead of using the blank space left on the previous page. 

 

I have tried to fix this by using the below CSS code, as stated in some of the Atlassian forums, however it didnt work.

 

 

.pagetitle

{

page-break-before: avoid;

page-brake-after: avoid

}

 

Any idea on how this can be achieved? 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Mirek
Community Champion
January 28, 2025

Hi @Sergio Lema 

If I see correctly your CSS code is having a typo.. brake instead of break

.pagetitle { 
page-break-before: avoid;
page-brake-after: avoid
}

so try this..

.pagetitle { 
page-break-before: avoid;
page-break-after: avoid;
}

and see how it goes

 

 

 

TAGS
AUG Leaders

Atlassian Community Events