Forums

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

PDF export - ADD page title to header/footer

Mike Kozlowski
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!
May 9, 2018

Im struggling with apparently a simple task - when I export a particular page, I'd like to have the page title (h1 pagetitle) on the first page in the page area (not the header) and then the same page name repeated in the footer of every page.

 

What I've achieved until now is: by defining the PDF stylesheet I either have the page title in the first page or I have it in the footer, never both.

 

In the global PDF stylesheet I've defined (for the page title in the footer):

.pagetitle h1 { 
display: block;
position: running(header1);
page-break-after:avoid;
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 14pt !important;
vertical-align: center;
text-align: left;
}

and in @page section

@bottom-left {
content: element(header1) !important;
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 10pt;
vertical-align: top;
text-align: left;
}

But this way there isn't any page title in the first page.

Removing "position: running(header1);" brings back the title on the first page but removes it from the footer.

 

Is there any way to achieve what I'm trying to do? I've checked similar threads already, none of them seems to give a binding answer.

1 answer

2 votes
Deborah Cross
Contributor
October 11, 2018

I'm having the same experience. If I define anything putting the title in a header or footer it disappears from the first page. Did you get a solution?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events