Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I aline the text when exporting to PDF?

Catherine October 1, 2018

Hello!

 

Sorry to say I'm not a professional in css, that is why I need your help with exporting:

 

I have headers and footers (they are working ok), but the body of my documents should be alined and sized 20pt (and they are not working).

 

My code:

@page
{
@top-center
{
content: "TEXT";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
font-style: oblique;
}
@bottom-right
{
content: counter(page);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
padding-bottom: 3em;
font-style: oblique;
}
{
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 20pt;
text-align: justify;
}
}

How can i solve the problem? 

1 answer

1 accepted

2 votes
Answer accepted
Shawn C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2018

Hi Catherine, 

After looking at a few other examples on the Atlassian Community, it looks like you're just missing the relation for "Body" in your CSS code.  Try updating the last part to something like this:

...
font-style: oblique;
}

body,p,li,td,table,tr,.bodytext,.stepfield
{
font-size: 20pt;
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
text-align: justify;
}

Cheers,
Shawn

Catherine October 2, 2018

Thank you, Shawn!

 

You are quite right! I have done it!

 

Sincerely yours,

Catherine

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events