pdf-lib
pdf-lib copied to clipboard
Arabic text with numbers, numbers gets reversed.
What were you trying to do?
Writing Arabic text line with numbers.
How did you attempt to do it?
I embedded a custom font like the following https://github.com/Hopding/pdf-lib#fonts-and-unicode.
What actually happened?
When an Arabic text line has numbers like سعر 12345
What did you expect to happen?
What gets generated in the pdf is سعر 54321
numbers gets reversed.
How can we reproduce the issue?
Embeding Arabic font like https://github.com/Hopding/pdf-lib#fonts-and-unicode.
Then generate a pdf with Arabic text and numbers سعر 12345
by page.drawText
Version
1.17.1
What environment are you running pdf-lib in?
Browser
Checklist
- [x] My report includes a Short, Self Contained, Correct (Compilable) Example.
- [X] I have attached all PDFs, images, and other files needed to run my SSCCE.
Additional Notes
No response
Same issue here? Any solution?
Did anyone find a solution for that?
any solution?