PDF export converts numbered lists to unordered lists

When I export pages with numbered lists to PDF, the numbered lists are converted to unordered bullets.

Confluence page:

PDFexport_numbered_list.png

Exported PDF:

PDFexport_unordered_list.png

Has anyone else run into this? Why is this happening?

3 answers

1 accepted

2 votes
Davin Studer Community Champion Dec 02, 2014

This issue is the below section in your CSS. You are telling it to have all list items use a sqaure ... whether is comes from an ordered list or an unordered list.

li
{
 list-style-type: square;
 font-size: 11pt;
 margin-top: 6pt;
}

Thank you, David! I changed that section to ul and the problem was solved.

Here is the stylesheet I'm using: @page { margin: 1in; size: 10in 12in; } /*This div excludes the auto-generated Confluence TOC. It seems like it needs to come before any other TOC-related divs or classes.*/ div.toc {display: none;} /* Generate border between header/footer and page content */ @page:not(.fsTitlePage) :left { border-top: 1px solid black; } @page:not(.fsTitlePage) :right { border-top: 1px solid black; } table { table-layout: auto !important; width: auto !important; } .fsTitlePage { margin: auto; page-break-after:always; vertical-align:top; display: inline-block; } .fsDocTitle { font-family: Arial, sans-serif; font-weight: bold; font-size: 20pt; } .fsDocSubTitle { font-family: Arial, sans-serif; margin-top: 10pt; font-size: 18pt; } .fsDocTitleCopyright { font-family: Arial, sans-serif; font-size: 10pt; } .DocTitleCopyrightWrapper { display: inline-block; } .fsFrontMatterWrapper { margin: auto; page-break-before: always; page-break-after: always; height: 10px; vertical-align: top; font-size: 10pt; } .fsFrontMatterHeader { font-family: Arial, sans-serif; font-weight: bold; margin-bottom: 12pt; margin-top: 12pt; } .fsFrontMatterBody { font-family: Arial, sans-serif; } .HeaderDocTitle { font-family: Arial, sans-serif; } .FooterConfidential { font-family: Arial, sans-serif; } /* for page numbering */ #pageNum:before { content: counter(page); text-align:right; text-align: end; } span.toclead:before { content: leader(dotted); } .toclvl0 { font-size: 14pt; color: #0077c1; } .toclvl1 { font-size: 12pt; } .toclvl2 { font-size: 12pt; } .toclvl3 { font-size: 12pt; } .toclvl4 { font-size: 12pt; } div.toclvl0:before, div.toclvl1:before, div.toclvl2:before, div.toclvl3:before, div.toclvl4:before { content: none; color: #0077c1; } /*ensures images fit on page in appropriate size */ .confluence-embedded-image { -fs-fit-images-to-width: 100% !important; } .Row { display: table; border-spacing: 40px; } .Column { display: table-cell; } .wrapper { background: transparent; } /* Overrides for body text and tables, i.e., the majority of the content. */ body,p,td,table,tr,.bodytext,.stepfield { font-size: 11pt; font-family: Arial, sans-serif; font-style: normal; } /* use square bullet instead of disc */ li { list-style-type: square; font-size: 11pt; margin-top: 6pt; } /* added margin-top property to try to add more white space to bullets */ /* commented color: black; from heading styles to see I can fix problem with inconsistent color */ h1 { top: 40px; /* color: black;*/ font-family: Arial, sans-serif; font-size: 24pt; padding-bottom: 0em; padding-top: 0em; page-break-before: always; page-break-after: avoid; } h2 { top: 40px; /* color: black;*/ font-family: Arial, sans-serif; font-size: 18pt; padding-bottom: 0em; padding-top: 0em; page-break-before: always; page-break-after: avoid; } h3 { /* color: black;*/ padding-top: 1em; padding-bottom: 1em; font-size: 14pt; page-break-after: avoid; } h4 { /* color: black;*/ font-size: 12pt; padding-bottom: 1em; padding-top: 1em; page-break-after: avoid; } p.note { -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; background-repeat: no-repeat; text-indent: 0em; color: #000000; background-color: #dddded; background-position-x: 2%; background-position-y: 50%; margin-left: 10%; margin-right: 10%; auto-number-format: '{b}Note: {/b}'; auto-number-class: RMSBlue; background-image: url('../Images/note_blue_bulb.png'); margin-bottom: 1em; margin-top: 1em; padding-left: 5em; padding-right: 1em; padding-top: 2em; padding-bottom: 2em; border-left-style: solid; border-left-width: 1px; border-left-color: #0c43ad; border-right-style: solid; border-right-width: 1px; border-right-color: #0c43ad; border-top-style: solid; border-top-width: 1px; border-top-color: #0c43ad; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #0c43ad; }

I wonder whether the PDF converter I am testing these days can help with that? Any suggestion will be appreciated. Thanks in advance.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,694 views 26 10
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