PDF export creates bookmarks at end of prior section

We create documentation for our product in Confluence and publish it online in a publicly available Confluence install. For those customers who may not have access to it or who prefer doc in book form, we publish the doc in a PDF (200+ pages long). We've customized the PDF stylesheet so it forces a new page for every h2 and h3 heading level. The bookmarks created within the PDF, however, seem to jump the user to the end of the prior section/chapter, which is sometimes a half a page before the new page starts. So, it appears to users that the bookmark jumped them nowhere - if they scrolled down, they'd see the next chapter but it's not an ideal user experience.

My guess is that the PDF sets the bookmark for the section and then forces the new page, but I have no way of knowing that or how to change it. Anyone have any suggestions for how to fix this (besides paying for the Scroll exporter)?

Thanks in advance -

Cassandra

2 answers

I had the same problem when I tried automatic pagebreaks.

I now add pagebreaks manually with a little makro. But even this only works when you add the makro to the end of the preceding page instead of the beginning of the real one (and use "page-break-after" instead of "page-break-before").

This won't work as a solution for 200+ pages documents but it probably shows that your interpretation of the problem is correct.

I also tried the page-break macro, but tried it at the beginning of the real one, and it didn't work at all. I didn't even think of trying page-break-after at the end of the preceding page.

I mostly solved it by buying the Scroll PDF Export tool. It's really nice once you figure out all the options, and it handles the page breaks & bookmarks much better than the default PDF export (although we're still using the one in 3.4.3, so perhaps it has improved).

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 ...

461 views 19 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