Hi everyone,
I am trying to customize the font size for PDF exports, but the changes are not being applied to the body text, even though they work for bullet points (list items). How can I ensure the font size is applied to the body text?
I have added the following CSS under Settings > Look and Feel > PDF Stylesheet:
body, p, li, td, table, tr, .bodytext, .stepfield {
font-size: 5pt;
line-height: 1.3;
color: red;
font-weight: normal;
}I have attached a screenshot of the exported PDF. As you can see, both the body text and the bullet points are red, which suggests the selectors are correct. However, the font size (5pt) is only reflected in the bullet points, while the body text remains at its default size.
Does anyone know why the font size is being ignored for paragraphs/body text, and how I can fix this?
For anyone facing a similar issue with the Code formatting exporting to PDF as an unreasonably large font size; this worked for me:
Hi @ara
The main issue is that you can customize the Stylesheet, but even so, PDF customisation only applies to space exports, not single-page exports, via 3-dots > Export.
Can you try this workaround
For the workaround, export a single page:
Go to:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the suggestion.
I tried the workaround you provided, but the result remains the same: the font size is only applied to the bullet points, and the body text is still not affected.
I also tried using this, but it didn't work.
font-size: 5pt !important;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!!!!
.wiki-content p { font-size: 12pt !important; } worked for me :)
It's taken an insane amount of time to find this but finally my "Normal" text and the text within the panels is displaying smaller than many of the headers.
"Old" was either with no css in the PDF Export | PDF stylesheet or the "Default Confluence Stylesheet.css" that I downloaded from Atlassian. I still want the "Code" formatting to drop down in size a bit, but that will be for another day.
Thank you; would never have found that one!
Michelle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.