How do I change the font sizes in PDF export?

Still need help?

The Atlassian Community is here for you.

Ask the community


The following KB will covers on how to change the font size of both headers and content in a PDF Export.


Changing the format of PDF exports will require us to add our own HTML to customize.

Setting a global PDF layout

  1. Choose the cog icon , then choose General Configuration under Confluence Administration
  2. Choose PDF Layout. You can enter HTML and CSS that will be rendered on the PDF title page, as well as page headers and footers.

Setting the PDF layout at space level

  1. Go to the space and choose Space tools > Look and Feel from the bottom of the sidebar You'll need Space Admin permissions to do this. 
  2. Choose PDF Layout.
  3. Choose Edit.

If your space uses the Documentation theme:

  1. Choose Browse > Space Admin from the header

    Note: The Space Admin option appears only if you have space admin permissions, or if you're part of the 'confluence-administrators' group.

  2. Choose PDF Layout in space administration options.
  3. Choose Edit.

Changing Headers Font Size

Add the following code in the PDF layout section:

.wiki-content h1
{ font-size: 50px; }

Please note that Confluence have a Demotion of heading elements which means that .wiki-content h1 is the element for Page Title, while .wiki-content h2 is the element for Header 1 and so forth. This information is quoted from this documentation: Customize Exports to PDF

Changing Content Font Size

Add the following code in the PDF layout section 

{ font-size: 8pt; }

Related Contents

Third Party plugin that offers PDF export customizations:


Last modified on Nov 2, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.