Heading 1 to 6 is not displaying as it should, with weird behavior?

Cocoy Suguitan
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 14, 2020

Hello,

I just started creating PDF templates for export using Scroll PDF Exporter but it is not displaying the Heading 1 to Heading 6 styles as how I had defined them in the template editor.

In the image below, Heading 1 to 6 are rendering properly as it should in the preview window:

 

image.png

I then created this page using Heading 1, 3 and 6 like so:

image.png

But after exporting the PDF, this is how the heading got rendered. Heading 1 seems ok, but Heading 3 and Heading 6 font sizes doesn't look correct. Also, Heading 6 which should not have a Left Border got rendered with the border. It almost feels like it rendered Heading 1 2 and 3!

image.png

Then here's the weird behavior, if I add all 6 heading styles in the page, only then does it render correctly:

image.png

 

Hope someone can help me with this as I have been scratching my head for days trying to figure it out. The display error is more amplified when I set "Page break before: To next page" in Heading 1 section, no matter what heading style I use (1 to 6), they all get displayed as Heading 1 size at the top of every page.

Thank you so much for any help!

1 answer

1 vote
Tom Rough
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, 2020

Hi @Cocoy Suguitan, the issue you describe relates to how the headings are handled by Scroll PDF Exporter, which is expected behaviour. This is because Confluence does not enforce proper ordering of headings (heading 3 can come before heading 2 on a page, etc.), therefore our Exporters use an algorithm to create a sensible hierarchy in every case. 

To do this, Scroll PDF Exporter will set the highest level of heading on a page, when it detects the first heading. Therefore, your heading level 3's and 6's will be elevated to heading level 2's and 3'd respectively. You can find more information regarding the way in which heading are handled here: https://help.k15t.com/scroll-pdf-exporter/latest/server/how-headings-are-handled-165944478.html

To prevent the unexpected formatting of your heading level, you would either need to add the prior heading levels (e.g. level 2 before your heading level 3) on the page, or alternatively, you would need to apply the necessary styling that you have for Heading level 3 and 6, to your Heading level 2's and 3's in your custom export template.  

I hope this makes sense.

Cheers, Thomas

Cocoy Suguitan
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, 2020

Thanks Thomas! This "hack" can address my requirements for now.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events