Forums

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

Font Size Of Exported PDF

Alistair Attrill
Contributor
December 12, 2023

Hello,

Does anyone know if the CSS Stylesheets for export to PDF are not working correctly.

 

I cannot seem to control the size of the text.

I have tried various different ones online but nothing seems to change the size of the exported font in the PDF.


Thanks in advance

 

2 answers

0 votes
Rodrigo
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.
December 13, 2023

Hello @Alistair Attrill

This situation could be caused by the latest update to the exporter. Check the links below, where it is said that:

"In Q2 2023 we released an update to PDF export that renders Confluence pages more accurately. However, this update does not support the customizations described in this page and will fall back to the older method of PDF export that does not render Confluence pages as accurately if these customizations are detected."

Hope this helps!
Rodrigo

0 votes
Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 12, 2023

Hi @Alistair Attrill,

It works fine for me. Try to add this on the PDF Stylesheets tab:

body,p,li,td,table,tr,.bodytext,.stepfield 
{ font-size: 14pt; }

Refer to this article How do I change the font sizes in PDF export? 

Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 12, 2023

@Alistair Attrill, sorry, I checked it on my Confluence Data Center instance...

This CSS doesn't work for Confluence Cloud, indeed.

Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 3, 2024

@Alistair Attrill, try to use this:

body,p,li,td,table,tr,.bodytext,.stepfield
{ font-size: 8pt !important; }

 "!important" will enforce the font change.

Like David Hina likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events