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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

435 views 18 9
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