Skip to content

Category: Questions

Arabic Text issue with PDFKit plugin

To generate dynamic PDF files, I’m using PDFKit. The generation works fine, but I’m having trouble displaying arabic characters, even after installing an arabic font. Also, Arabic text is generated correctly, but I believe the word order is incorrect. As an example, I’m currently using pdfki…

Update array based on id Javascript

I want to update he array based on id with some conditions. Conditions were = console.log(myupdate(data1, update1)) should update the data1 as bellow based on id here the type is changed to bar console.log(myupdate(data1, update2)) here as no item with id 125 exist so it adds a new one console.log(myupdate(da…