Forums

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

When exporting PDF blank pages appear

Jeroen Haesen March 11, 2021

Hi,

We create pages in a confluence space and when it's done, we export the page to PDF.

In the page we have some page breaks and they work fine, but we also get blank pages. Even between text within a section.

Does anyone know how to solve it?

Thanks!

1 answer

0 votes
Fabienne Gerhard
Community Champion
March 11, 2021

Hi @Jeroen Haesen 

what system are you running and what version (if it's Server)? What are the settings you made?

We had a nearly similar problem according page-breaks -> 

Page breaks

By default, each Confluence page will start on a new page in the PDF.  If you don't want each Confluence page to start on a new page, you can override the default page breaks using the following CSS:

.pagetitle {
    page-break-before: auto;
}

This behaviour changed in Confluence 6.13. If you're using Confluence 6.12 or earlier, page breaks are not added before each page title. 

Find more information on costum pdf site

Jeroen Haesen March 11, 2021

Hi @Fabienne Gerhard , thanks for you swift reply!

We are using Confluence Server, version 7.10.2 and it's not the Confluence pages which have the break. We have 1 Confluence pages and because of the size it's exported over several pages, which is fine. But the export has more breaks then we put as a macro. The macros work fine, but we also have some blank pages in between or a page break is done after some text. 

 

In the past I got a solution which mentioned to remove spaces in the template on top of each section, but that I've already done and doesn't seem to solve it.

Fabienne Gerhard
Community Champion
March 11, 2021

Hi @Jeroen Haesen 

oh ok - so I understood that wrong -sorry. 

Do you have any Costum CSS/html or theme running? What exactly does the macro do?

Does it happen in all browsers when exporting? 

Jeroen Haesen March 11, 2021

Thanks @Fabienne Gerhard .

Indeed it happens in all browsers. With the macro I mean the 'Scroll pagebreak' macro which can be inserted and contains no modifications.

The only custom CSS we have is for adding page numbers, but that works fine. We have multiple templates and the rest works fine, except for this one. 

 

We created a template for creating pages and we have a template for exporting pages. The template for exporting is fine, because we use that for several different pages. I believe the issue is in the template for creating pages. 


THanks.

Jeroen Haesen March 11, 2021

@Fabienne Gerhard : I think I've come a step further. It seems that each header is 'printed' on a new page. As soon as I change the text from header to paragraph, it's not printed on a new page but just under the previous text.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events