PDF Export question: How to modify font in a {code} block?

samjones6 May 8, 2012

After upgrading from 3.1 to 3.5 to 4.2, our export to PDF has an oddity: The font in {code} blocks is too laaarrrrgggeee.

It appears the css class is: div class="codeContent panelContent"

What exactly would the css entry be in confluence admin to control/modify this?

Thanks!

1 answer

1 vote
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 9, 2012

Edit the PDF stylesheet as documented here:

http://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF#CustomisingExportstoPDF-CustomisingthePDFStylesheet

For

<div class="codeContent panelContent">...</div>

Use the selector

div.codeContent.panelContent {
  font-size: 8px; /* or similar */
}

You may need to specify an element nested inside there to get it working nicely though, e.g.

div.codeContent.panelContent div.someClass {
  font-size: 8px; /* or similar */
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events