Copy link to clipboard
Copied
Hello guys,
I have a serious and urgent issue and I hope this expert community could help me out in finding a solution for it.
I have a magento CMS ecommerce based group buying deals website based in UAE and my developers have coded it in a way to send out PDF coupon vouchers in Arabic language to customers who bought the deal.
The problem is that the characters inside the PDF look very akward! They are disjointed and not connected together and they are displayed in a reversed order which can only be readable from left to right. So in other words the coupon vouchers in Arabic look extremely messy!
I have no idea what I need to do in order for me to fix this, do I need to work on the unicode? Is there a specific Arabic font I can use to resolve this?
Any help would be extremely appreciated guys!
Thank you
Ziad
Copy link to clipboard
Copied
From what I see, it is not related to PDF or Acrobat, your CMS system may not support Arabic fully or it's not PDFing in the right way. The developers need to look into this matter, but I apologies for not having any suggestions for them.
Copy link to clipboard
Copied
10 years later and this issue is STILL not fixed! Says a lot about a big company that has enough resources to fix any issues.
Copy link to clipboard
Copied
Dear all: I have found a solution. Import the excel data into a software like STATA (import all data as string). Suppose your variable name is X. Use the command:
replace X=ustrreverse(X)
Copy link to clipboard
Copied
A temporary solution could also be this python code written by ChatGPT
def reverse_words(input_string):
words = input_string.split()
reversed_words = [word[::-1] for word in words]
return ' '.join(reversed_words)
So you copy text from the pdf and put it in the python code and it does the job for you.
An example would be:
a="نيمدقتملاب"
print(reverse_words(a))# Output: بالمتقدمين
But the copying is still showing some other unexpected errors.
Copy link to clipboard
Copied
I used FireFox browser to open PDF files it works. the Arabic characters are shown correctly
Copy link to clipboard
Copied
I'm using Adobce Acrobat professional directly without using any system and I have the same issue, I just open any PDF document on my desktop then I add text and I type arabic words and the letters are disconnected. I have this issue since years, all IT technicains any where in Arab world knows that Adobe Acrobat PDF can't handle arabic text well.