[
https://issues.apache.org/jira/browse/PDFBOX-4806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074378#comment-17074378
]
Tilman Hausherr commented on PDFBOX-4806:
-----------------------------------------
See here:
https://pdfbox.apache.org/2.0/faq.html#text-extraction
Your PDF has a broken /ToUnicode stream, that is why some of the fonts are not
decoded correctly.
The original PDF ( [^ESt_1_A_2019.pdf], found at
[https://www.formulare-bfinv.de/|http://example.com]) does not have this
problem. Thus I suspect that some additional software added text on this PDF
and did not do this very well.
I hope that the data (tax#, bank#) in the PDF you uploaded is not actual data -
if it is, please delete the PDF. I have saved it (temporarly).
> Trying to extract the text from this PDF, getting unicodes.
> ------------------------------------------------------------
>
> Key: PDFBOX-4806
> URL: https://issues.apache.org/jira/browse/PDFBOX-4806
> Project: PDFBox
> Issue Type: Test
> Components: Text extraction
> Affects Versions: 2.0.19
> Environment: Java
> Reporter: Cherry Sri
> Priority: Blocker
> Attachments: ESt_1_A_2019.pdf,
> language_encoded_ESt_1_A_2019_p1-filled.pdf
>
>
> Trying to extract the text from this PDF, getting unicodes.. Need help
>
> ,"word_identifier":"\u0015\u0013\u0014\u001c"}
> "word_identifier":"(LQJDQJVVWHPSHO"}
>
> Apr 02, 2020 4:39:05 PM org.apache.pdfbox.pdmodel.font.PDFont loadUnicodeCmap
> WARNING: Invalid ToUnicode CMap in font DVWIYK+font00000000242bcd5a
> Apr 02, 2020 4:39:05 PM org.apache.pdfbox.pdmodel.font.PDFont loadUnicodeCmap
> WARNING: Invalid ToUnicode CMap in font BBTJPM+font00000000242bcd5a
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]