javascript - How to add image at the end of text line using pdfmake? -
i'm using pdfmake. i'm trying figure out how add image end of text line instead of new line. example:
var dd = { content: [ 'test text', {image: 'sampleimage.jpg', width: 24, height: 24} ] }
using description pdfmake generates pdf first line 'test text', , second contains image. need text , image in single line 'test text [image]'.
has done before?
i advice on how it. thanks.
use columns
var dd = { content: [ { columns: [ { width: 'auto', text: 'test text' }, { width: '*', image: 'sampleimage.jpg', width: 24, height: 24 } ] } ] }
Comments
Post a Comment