- Posts: 2
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Extracting text
IP: 192.168.0.70
14 years 1 month ago #192
by dmpost
Extracting text was created by dmpost
Hi,
when I extract non-english text I get wrong(chinese) symbols from time to time.
How can I fix it?
Example:
page.ObjsStart();
int pageLength = page.ObjsGetCharCount();
String tempStr = page.ObjsGetString(0, pageLength);
Results I get:
섄됵ксей Голощапов
nроrра�ирование
дn茐1 мо6иnьных
舠' у섐Ё⑀оиств
Сан섎т-Петербург
Results I expect
Алексей Голощапов
програмирование
для мобильных
устройств
Санкт-Петербург
I understand that this can be because of bad OCR text recognition,
but on images or PDF viewers it looks OK.
Maybe it is possible to force some encoding or something?
when I extract non-english text I get wrong(chinese) symbols from time to time.
How can I fix it?
Example:
page.ObjsStart();
int pageLength = page.ObjsGetCharCount();
String tempStr = page.ObjsGetString(0, pageLength);
Results I get:
섄됵ксей Голощапов
nроrра�ирование
дn茐1 мо6иnьных
舠' у섐Ё⑀оиств
Сан섎т-Петербург
Results I expect
Алексей Голощапов
програмирование
для мобильных
устройств
Санкт-Петербург
I understand that this can be because of bad OCR text recognition,
but on images or PDF viewers it looks OK.
Maybe it is possible to force some encoding or something?
IP: 192.168.0.70
14 years 1 month ago #193
by support
Replied by support on topic Re: Extracting text
If your PDF are built by an OCR system, a lot of characters could be bad recognized and should have only a good graphical aspect but a wrong text representation.
Even with some digitally produced documents there are some characters that are composed only to get the right graphical rendering using two or three characters varying kerning and spacing.
I think the only way to get a good text is to complete the extraction process with a thesaurus and dictionary.
By the way: may you send us one of the document you are experiencing that issues?
Even with some digitally produced documents there are some characters that are composed only to get the right graphical rendering using two or three characters varying kerning and spacing.
I think the only way to get a good text is to complete the extraction process with a thesaurus and dictionary.
By the way: may you send us one of the document you are experiencing that issues?
IP: 192.168.0.70
14 years 1 month ago #196
by radaee
Replied by radaee on topic Re: Extracting text
OK, some bugs found.
this will fixed in furture.
this will fixed in furture.
- pedro.pinheiro
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
11 years 7 months ago #8426
by pedro.pinheiro
Replied by pedro.pinheiro on topic Re: Extracting text
Urgently !
Any news about this case?
I've got a PDF with portuguese text that I can't extract the text with correct characters.
Thanks!
Any news about this case?
I've got a PDF with portuguese text that I can't extract the text with correct characters.
Thanks!
11 years 7 months ago #8427
by support
Replied by support on topic Re: Extracting text
This was a very old thread. This specific issue was belonging from OCR recognition and not to chars encoding.
If you have some file that encode text in the wrong manner, please provide us a copy and give us information about what you're expecting extracting text.
If you have some file that encode text in the wrong manner, please provide us a copy and give us information about what you're expecting extracting text.
Time to create page: 0.431 seconds