Pdfmake: Ability to add colors to text?

Created on 31 May 2015  路  5Comments  路  Source: bpampuch/pdfmake

I tried doing something like :
fontColor: 'red'

Nothing really happened. Am I doing it wrong or this does not exist yet?

Most helpful comment

@sankalpsingha - you'll find all available styling properties here: https://github.com/bpampuch/pdfmake/blob/master/src/styleContextStack.js#L85

All 5 comments

Hey, try using
color:'red'

@sankalpsingha - you'll find all available styling properties here: https://github.com/bpampuch/pdfmake/blob/master/src/styleContextStack.js#L85

@sankalpsingha - you'll find all available styling properties here: https://github.com/bpampuch/pdfmake/blob/master/src/styleContextStack.js#L85

Link isn't working anymore

@sankalpsingha - you'll find all available styling properties here: https://github.com/bpampuch/pdfmake/blob/master/src/styleContextStack.js#L85

Link isn't working anymore

https://github.com/bpampuch/pdfmake/blob/0.1/src/styleContextStack.js
Love this digging in sources to make stuff work :-p,
Some trial and error says:

color: 'grey',
background: '#F1F2F3'

Works as expected

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelqiji picture michaelqiji  路  3Comments

jokris1 picture jokris1  路  3Comments

sayjeyhi picture sayjeyhi  路  3Comments

m-brudi picture m-brudi  路  3Comments

einfallstoll picture einfallstoll  路  3Comments