Turn off demotion of headings in multi-page PDF export?

I would like to turn off demotion of headings when exporting a page hierarchy to PDF. I don't want H1 tags to become H2 tags.

As a workaround, I have embedded all Heading1 text in a div with a class called Heading1, and I have defined that class in the PDF Export CSS file. That works OK, although it will be a nuisance to do that with hundreds of pages.

I have not, however, been able to stop the main page title, which is also an H1, from being demoted. I can't find the right combination of classes or IDs to access it.

What CSS syntax is required to access a page title?

By the way, I have attempted to access the HTML source intermediate file to view the tags for a page title (as described in https://confluence.atlassian.com/display/CONF53/Advanced+PDF+Export+Customisations), but the server cannot locate the intermediate html file.

2 answers

This is still a huge problem. Atlassian needs to provide control over header demotion and a way to turn it off.

I have a problem with this as well, as I am trying to get section numbering to work. Since I don't know what html (after "header demotion") is used it's total trial and error...

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,008 views 22 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you