Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Get Page Title Variable to add to header and title page in PDF export

Anju July 19, 2017

The code below gets me a title page and a header "Header" but I need the header to have the page title. How would I get that variable?

.pagetitle h1 {
font-size: 36px !important;
margin-left: 250px !important;
padding-top: 300px !important;
page-break-after:always;
}

@page {
@top-left {
content: "Header";
}
}

 

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 2, 2017

Hi Anju,

You can use runningheaders to include the title in your PDF header. For example:

@page {
@top-center {  
content: element(runningheader);
} 
}
.pagetitle h1 {
position: running(runningheader); 
}

For more information, review running headers and footers. Let us know if you have any questions about that!

Kind Regards,
Shannon

Xavi Martinez November 27, 2017

Yes, it works, but where can I get info about the runningheader or other parameter like version or date of document ??

Thanks

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events