Pdfmake: Underline and strike text

Created on 21 Apr 2015  路  7Comments  路  Source: bpampuch/pdfmake

Is it possible to underline or strike text?

Most helpful comment

All 7 comments

Thanks! Would be good to add those to the playground... In addition, it would be more consistent to be able to underline, overline and strike at the same time (very rare but more consistent with what an editor can do...)

Happy to accept a pull request for either ;-)

:) I'm not very familiar with github...

Hi @jthoenes ,
How to give a space between decocation:'overline' and text.

var dd = {
content: [{
text: 'Test',
style: 'signature',
}],
styles: {
signature: {
fontSize: 20,
bold: true,
decoration: 'overline',
decorationStyle: 'solid',
decorationColor: 'black'
},
}
}

I had to do a google search to find this. It would look great in documentation....

Agreed. It would be extremely helpful to have all of the styling options laid out in the documentation so that we don't have to do a google search every time we want to make a styling change.

Was this page helpful?
0 / 5 - 0 ratings