The use of PDF to present Arabic text can follow at least a few different strategies, none of which bode well for the extraction of Unicode Arabic text from a PDF file. Some or all of the text may actually be stored as image data rather than as character data, and to the extent that there are portions of text comprised of discrete characters, those characters use numeric assignments that bear no discernible relation to Unicode Arabic code points.
I remember spending a few hours one time (a couple years back) trying to find web references that would explain the PDF character encoding scheme for Arabic, but I never succeeded. Of course, I'm ignorant enough about PDF details in general that I can't even assess how inadequate that attempt was. | [reply] |
Please provide a link to such an unreadable PDF.
Then try pdftohtml -xml on it.
And please keep in mind that PDFs which don't use a standard font are not necessarily parsable, cause they might embed an own font with random code-points for the glyphs.
In this case deciphering is only possible with character and word recognition. Either automatic (OCR) or human (by populating a hash $glyph{codepoint} for each unknown font)
HTH! (Inshallah =)
Cheers Rolf
( addicted to the Perl Programming Language)
| [reply] [d/l] |
| [reply] |
Thank you for your response.
Actually Didn't work. The problem in supporting Arabic, not in parsing.
--Abed.
| [reply] |
Not sure what your problem is then. Can you describe it?
| [reply] |