Jspdf-autotable: I need to write bold and normal text in the same cell. Is it possible?

Created on 7 Dec 2018  路  6Comments  路  Source: simonbengtsson/jsPDF-AutoTable

I need to write bold and normal text in the same cell.
My cell value text contains html tags like <b>, so it looks like this:
var text = 'normal <b>bold</b> normal'
Word wrap also need to work!

How can I do this?

Most helpful comment

@simonbengtsson can you help us to write a cell with mixed font styles ?
thanks

All 6 comments

You can use didDrawCell to parse and draw the text yourself.

If anyone is still looking for answer the following links might help.

mix bold & html inside a cell in table SO

mix bold & html github

@simonbengtsson can you specify a little bit more? i think there is not any clear solution to this problem, i tried using didDrawCell hook but could not do it work...

@simonbengtsson can you help us to write a cell with mixed font styles ?
thanks

@simonbengtsson it will be helpful if someone help us answer this question, i tried to use the didDrawCell hook but examples here will help everyone

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alorse picture Alorse  路  4Comments

simonbengtsson picture simonbengtsson  路  5Comments

dnlbaldwin picture dnlbaldwin  路  6Comments

cplaiu picture cplaiu  路  3Comments

prakashsam picture prakashsam  路  4Comments