[ https://issues.apache.org/jira/browse/PDFBOX-5162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17318530#comment-17318530 ]
Tilman Hausherr commented on PDFBOX-5162: ----------------------------------------- It is somehow related to this segment in PDFont.java {code} // due to the conversion to an int it is no longer possible to determine // if the code is based on a one or two byte value. We should consider to // refactor that part of the code. // However simple fonts with an encoding are using one byte codes so that // we can limit the CMap mappings to one byte codes by passing the origin length {code} This is from PDFBOX-4749. In this file, the ToUnicode stream has 2 bytes. Calling {{toUnicodeCMap.toUnicode(code)}} works, but then the text extraction tests fail. Btw Adobe Reader is not able to do a text extraction. > Text extraction lost > -------------------- > > Key: PDFBOX-5162 > URL: https://issues.apache.org/jira/browse/PDFBOX-5162 > Project: PDFBox > Issue Type: Bug > Components: Text extraction > Affects Versions: 3.0.0 PDFBox > Reporter: Tilman Hausherr > Priority: Major > Fix For: 3.0.0 PDFBox > > Attachments: U6ASNM46APERCT7O5LPX7YFLSMA2JP3L-p1.pdf > > > Text extraction worked in 2.0.23, no longer in 3.0. Unicode values are > missing. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org