Forums

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

Styling Task Lists on export to pdf

Tim Oldendorf
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 19, 2018

Hello - I have 1 issues and 1 question

 

1) Issue - The Task Checkbox and the actual task are not lining up when exporting to pdf

2018-09-19_10h08_20.png

 

2)Question - How can I change the font size of the task list items on export? Through the pdf stylesheet I already changed the font size using this 

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

Which works for everything but any text that is attached to a task list checkbox

 

Thanks in advance for any assistance!

 

1 answer

0 votes
Matthias Dannhorn September 19, 2018

Hi Tim,

 

this is what Confluence renders and you can ad a font size:

ul.inline-task-list>li.checked {
background-image: url(data:image/png;base64,BASE64ENCODEDEIMAGEPLACEHOLDER);
}

ul.inline-task-list>li {
background-image: url(data:image/png;base64,BASE64ENCODEDEIMAGEPLACEHOLDER);
}

 

The default CSS rules for the PDF stylesheet: confluencedefaultpdf.css

Further informations can be found here: Customize Exports to PDF

 

Regards

-matthias

Tim Oldendorf
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 20, 2018

Thanks for your help Matthias.

That works if the task list isn't inside of a table. Any way to change it if it exists both inside and outside of a table?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events