This is my code :
var doc = new PDFDocument();
var stream = doc.pipe(blobStream());
doc.fontSize(25)
.text(سلام به همه', 100, 80');
doc.end();
stream.on('finish', function() {
iframe.src = stream.toBlobURL('application/pdf');
});
See image below :
PdfKit module has a problem with unicode.
How can I build pdf with persian character ?