Is it possible to underline or strike text?
Have a look at Text Decorations: https://github.com/bpampuch/pdfmake/blob/master/examples/textDecorations.js
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.
Most helpful comment
Have a look at Text Decorations: https://github.com/bpampuch/pdfmake/blob/master/examples/textDecorations.js