pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

Underline and strike text

Open natcohen opened this issue 11 years ago • 7 comments

Is it possible to underline or strike text?

natcohen avatar Apr 21 '15 06:04 natcohen

Have a look at Text Decorations: https://github.com/bpampuch/pdfmake/blob/master/examples/textDecorations.js

jthoenes avatar Apr 21 '15 07:04 jthoenes

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...)

natcohen avatar Apr 21 '15 08:04 natcohen

Happy to accept a pull request for either ;-)

jthoenes avatar Apr 21 '15 09:04 jthoenes

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

natcohen avatar Apr 23 '15 06:04 natcohen

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' }, } }

12smc120 avatar Dec 23 '17 19:12 12smc120

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

ackvf avatar Nov 26 '18 03:11 ackvf

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.

daniel-rau avatar Mar 07 '19 16:03 daniel-rau