How to change document title attributes for PDF export

Toomas Kiisk
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!
September 3, 2019

Hello,

how do I change document title attributes for PDF export? I tried something like this in PDF export stylesheet (space stylesheet, not global);

#title-text a { font-size: 150%; text-align: center; }

but it doesn't work. There's very little info available on selectors available. Maybe #title-text isnt right thing?

Confluence server 6.15.7

 

2 answers

0 votes
Herve Frydlender
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.
November 7, 2019

Got it!

...
/* Title */
h1:first-child {
    text-align: left;
    font-size: 34pt;
    font-variant: small-caps;
    font-weight: bold;
    padding: 200px 0px 100px 0px;
}
...
Mel DuPont December 20, 2022

I'm having trouble with this fix. When the Confluence page I export has a Heading 1, then that heading ALSO receives the h1:first-child styling. How can I divorce the page's title from Heading 1 -formatted text?

Mel DuPont December 20, 2022

I found your updated answer elsewhere!

/* Title */

h1.title-header {
    text-align: left;
    font-size: 34pt;
    font-variant: small-caps;
    font-weight: bold;
    padding: 200px 0px 100px 0px;
}
0 votes
Herve Frydlender
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.
October 14, 2019

Hi Toomas,

Looks like we have the same issue : https://community.atlassian.com/t5/Confluence-questions/Export-to-PDF-and-headers/qaq-p/1201186

Did you find a solution?

Toomas Kiisk
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!
October 15, 2019

Hello,

I gave up :|

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events