OnDemand Confluence Export PDF Font

Hi,

I need the ability to use a specific font in our PDF exports. I've had a look at this: https://confluence.atlassian.com/display/DOC/Advanced+PDF+Export+Customisations

And it shows that it should be possible to use font-face to allow the use of a different font:

@font-face 
{  
  src: url(file:///usr/share/fonts/Consolas.ttf);  
  -fs-pdf-font-embed: embed;  
}  
  
.code pre, .preformatted pre, tt, kbd, code, samp 
{  
  font-family: Consolas, monospace;  
  font-size: 9pt;  
}

I've changed the url to point to a hosted server I can publicly access but unfortunately no luck so far. It seems to fall back to the standard font.

Is this functionality available in OnDemand?

Thanks for your help!

2 answers

1 accepted

That's currently not possible in OnDemand, we have a feature request to address it:

- https://jira.atlassian.com/browse/CONF-28348

Please vote for it and leave your feedback. In the meantime, you can log a ticket at support.atlassian.com and upload the font file, and a support engineer will upload it into your Confluence and you should be able to export to PDF normaly after that.

All the best.

NOOOOOO. You mean you can't use custom fonts for PDF generation in Confluence?

@Daniel Sadjadian, you can use custom fonts for PDF exports. It's just that you would need to convert them to a [TTC font format|https://confluence.atlassian.com/display/CONFKB/How+to+create+ttc+family+font+file] first, and then request Atlassian Support to perform the upload for you. :)

This is not the case anymore. Confluence cloud can now handle custom fonts for pdf Export. See this question / answer : https://community.atlassian.com/t5/Confluence-questions/Changing-font-family-in-PDF-export-OnDemand/qaq-p/433055

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 Friday 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...

262 views 11 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