node.js - Generate Arabic content with PDFKit & nodeJS -


i'm using pdfkit nodejs generate dynamically pdf files. generation works fine have problem displaying arabic characters if setup font support arabic.

the letters rendered correctly, words displayed character character :(

here's code

doc = new pdfdocument; doc.pipe(fs.createwritestream('output.pdf')); var str = "فصل الربيع الزهور \n#nature #payesage #fleurs #plantes #vert #espace #temara #rabat #maroc #weekend #balade #instamoment #instalife #instamaroc #photographie #macro #peace"; doc.font('resources/helveticaneueltarabic-roman.ttf').text(str); 

any thoughts or suggestions great.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -