[
https://issues.apache.org/jira/browse/PDFBOX-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
EugenePig updated PDFBOX-2409:
------------------------------
Attachment: THESSALONIANS.line - golden.txt
I uploaded a golden sample ” THESSALONIANS.line - golden.txt”. It uses UTF-16
encoding for easily debugging. I used Java Normalizer to normalize every
character first. For example, U+FC62 can be decomposed into U+0020, U+0650 and
U+0651. I also implemented an algorithm to determine what letter has the
diacritic by distance and how many diacritics the letter already has. The
algorithm is too complex. Therefore I don’t recommend it. That is why I
reported the issue and hope someone can fix it. Except diacritic issue, I found
another issue about Arabic PDF. A few letters are different from the original
PDF in my sample, such as the rightest letter in the second line. I think it is
Adobe’s issue. So I didn’t mention it in this issue report. I had asked that
issue on Adobe Communities. However I don’t get any solution. Please refer to
https://forums.adobe.com/message/6375926#6375926
> got the wrong result from Arabic text extraction
> ------------------------------------------------
>
> Key: PDFBOX-2409
> URL: https://issues.apache.org/jira/browse/PDFBOX-2409
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 1.8.7, 2.0.0
> Environment: Ubuntu 14.04 64bit
> java version "1.8.0_20"
> Reporter: EugenePig
> Assignee: John Hewson
> Attachments: THESSALONIANS.line - golden.txt, THESSALONIANS.pdf,
> THESSALONIANS.txt, THESSALONIANS_win7_firefox.jpg, TextEdit-Arial.png,
> jahewson.mac.png
>
>
> java -jar pdfbox-app-1.8.7.jar ExtractText -sort -encoding UTF-8
> THESSALONIANS.pdf
> java -jar pdfbox-app-2.0.0-SNAPSHOT.jar ExtractText -sort -encoding UTF-8
> THESSALONIANS.pdf
> Please compare THESSALONIANS.txt.jpg with THESSALONIANS.pdf. There are a lot
> of differences. I just marked a few differences with red circles.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)