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 widget could not be displayed.

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

This widget could not be displayed.

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
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

464 views 6 6
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