Page number in the table of content

When I use the custom PDF export of Confluence, I sometimes have in the TOC a list item that spans 2 lines. When the second line is also almost filled, the page number seems to be split, one number is on the second line, the other number is on a third line on the left.


1.34 201404 Principiële goedkeuring van voorontwerp besluit Vlaamse Regering inzake goedkeuring van IMKL en PMKL en betreffende de inwerkingtreding van het KLIP-wijzigingsdecreet dd 17 januari 2014 wat betreft de wijze van het afhandelen van een planaanvraag 50

Is this a known issue?

1 answer

Hi Patrick,

I hope that I understand to your request :)

PDF export is always little bit problematic. So we have to make a few CSS fixes for that. Maybe try to set line-height or margins?

And which version of Confluence do you have?

Hi Ales,

We have version 5.5.3.


We have the same. So maybe try to define line-height in CSS

OK, but how do I do that for the TOC?

This is all our CSS where is somethink with li (html elemt for lists)

.wiki-content > div > ul,   
.wiki-content > div > ol{
   margin-left: 15pt;  

p, td, th, table td, table th, li, a, div, span, .panelMacro, .panelMacro td, .panelMacro p {  
  font-size: 10pt; line-height: 13pt;  
  font-family: "DejaVu Sans Condensed", serif;  

li {  
  margin-top: 2pt; margin-bottom: 2pt;  

    page-break-after: avoid;

Last one, page break after is about one issue, maybe it was fixed. When we exported to PDF, we have a page break after TOC :)

Hi Ales,

I added the line-height for the li element: the toc was better for some items, but other items get the same issue then.

Not sure if it's a Confluence PDF creation problem or a Adobe PDF problem.



Still have the issue...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

275 views 2 10
Read article

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