Is there a way to specify custom fonts in On Demand Confluence PDF exports?

I have been trying to customose the way the PDF looks using the PDF stylesheet and layout.

I can't seem to be able to change the font. I would like my PDFs to be in Trebuchet MS. But It still comes out in Times.

Thanks ever so much!

1 answer

0 vote

Hi, there.

Indeed there is a way. This will apply to an entire space, so be careful is you want to change only a page:

  • Go to a page in the space
  • Click 'Space tools' (in the left bottom corner) >> Look and Feel 
  • Click the tab 'PDF Stylesheet'
  • Click 'Edit'
  • Enter the following code in the 'PDF Export Stylesheet':
p {
font-family: "Trebuchet MS", Helvetica, sans-serif;
}
  • Click 'Save'

 

From this moment on, all pages in this space should be exported to PDF in this font. You can also find other fonts here: http://www.w3schools.com/cssref/css_websafe_fonts.asp. Just change the code accordingly.

 

I hope it was helpful. 

 

Kind regards.

Jaime Kirch da Silveira

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 yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

83 views 2 3
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