Node-pdfkit http://pdfkit.org/index.html
I am using nodejs pdfkit to generate a pdf. I want to be able to bold or italic individual words in a line. It looks like pdfkit doesn't support this, so I was wondering if anyone had done something similar?
What would be really useful is to call the doc.text function, but have the document retain it's x position, so that I could do the following.
doc.text('some words then ');
doc.font('Helvetica-Oblique');
doc.text('italic');
doc.font('Helvetica');
doc.text(' then the remaining words');
and see the output:
some words then italic then the remaining words.
Right now it's outputting one line per text function.
Anyone know a good way to do this?