[ 
https://issues.apache.org/jira/browse/PDFBOX-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116135#comment-17116135
 ] 

Tilman Hausherr edited comment on PDFBOX-4846 at 5/25/20, 4:22 PM:
-------------------------------------------------------------------

The unicode of the "P" glyph is indeed "p":
 !image-2020-05-25-18-21-56-276.png! 

PDF.js also extracts "pROFIT", Chrome extracts "profit", Adobe extracts 
"profit". The ToUnicode stream has this:

<50> <0070>

0x50 is 80d (see image). 0x70 is a small "p". So I'd say PDFBox is correct, but 
I'm wondering why some others have a different text extraction. Maybe some 
autocorrect feature?


was (Author: tilman):
The unicode of the "P" glyph is indeed "p":
 !screenshot-1.png! 

PDF.js also extracts "pROFIT", Chrome extracts "profit", Adobe extracts 
"profit". The ToUnicode stream has this:

<50> <0070>

0x50 is 80d (see image). 0x70 is a small "p". So I'd say PDFBox is correct, but 
I'm wondering why some others have a different text extraction. Maybe some 
autocorrect feature?

> Capital Letter in PDF appear as small letter in PDFBox
> ------------------------------------------------------
>
>                 Key: PDFBOX-4846
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4846
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.19
>         Environment: Windows 7
>            Reporter: William Au Yeung
>            Priority: Major
>         Attachments: 0493_ltn201903291811.pdf, 
> image-2020-05-25-18-21-56-276.png, screenshot-1.png
>
>
> the wording in page two, "CONSOLIDATED STATEMENT OF PROFIT OR LOSS", 
> extracted as "CONSOLIDATED STATEMENT OF pROFIT OR LOSS" by pdfbox
> the wording in page four, "CONSOLIDATED STATEMENT OF FINANICAL POSITION", 
> extracted as
> "CONSOLIDATED STATEMENT OF FINANICAL pOSITION" by pdfbox
>  
> why have such behaviour?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to