Mohammed,

Mohammed Mostafa wrote
> I know the direct way for extracting text but the problem is that i want
> to extract arabic text from pdf, when i extract text from pdf using iText
> i get the page stream with iText PRStream, thE arabic text come with
> strange codes (038f-00ac) and i want to convert these codes to original
> unicode by using CMap,

So you want to create your own text extraction routines instead of using
(maybe improving) the iText parser package classes. Why? They do most of the
heavy lifting for you already.

BTW, I assume what your "direct way for extracting text" means is simply
taking the page content and using the contained string as they are. That is
not a "direct way" but instead a "naïve way".
> My question, where cmap in font dictionary 

On the Adobe forums you have been pointed to look for a "ToUnicode CMap"
(http://forums.adobe.com/message/5447851). You found
> <INDIRECT key="/ToUnicode" number="30" generation="0" value="30 0 R" />

And you still ask
> where CMap itself so that i can map these chaaracter codes to its
> unicode??

Is there any reason you don't follow that reference to object 30?

You have also been pointed towards the PDF specification on the Adobe
forums. Your questions here seem to indicate that you have chosen not to
seriously follow that pointer. Why?

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Extract-CMap-from-pdf-file-tp4658607p4658616.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to