Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

OnDemand Confluence Export PDF Font

Trevor Sumner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 5, 2013

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

3 votes
Answer accepted
Abdulrazaq Mohammed Ali Omar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2013

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.

Daniel Sadjadian April 21, 2015

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

Justin Alex Paramanandan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2015

@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. :)

0 votes
Thomas Henrion June 2, 2017

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
TAGS
AUG Leaders

Atlassian Community Events