pdfmake-wrapper how to write a line with multiple style

Viewed 508

I'm trying this library which is a wrapper of pdfmake and I can't find how to make multiple styles inline, such as this example:

I've been struggling on this for a while.

1 Answers

So I just found the answer to my question:

new Txt([
   new Txt('I\'ve been struggling').bold().end,
   ' on this for a',
   new Txt('while').italics().end
]).end
Related