[
https://issues.apache.org/jira/browse/PDFBOX-4532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16831614#comment-16831614
]
Tilman Hausherr commented on PDFBOX-4532:
-----------------------------------------
One of the fonts has a weird ToUnicode stream:
{code:java}
<2E> <0020>{code}
so the "." decodes as a space. But the content stream uses an "exotic" feature
("ActualText") that we don't support:
{code:java}
0 g
/TT0 1 Tf
/Span << /Lang (en-US) /MCID 8 >> BDC
BT
-0.005 Tw
50 0 0 50 100 700 Tm
(0) Tj
/Span << /ActualText (\376\377\000.) >> BDC
(.) Tj
EMC
(1) Tj
ET
EMC
{code}
> PDFTextStripper replacing the decimal with white space
> ------------------------------------------------------
>
> Key: PDFBOX-4532
> URL: https://issues.apache.org/jira/browse/PDFBOX-4532
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 2.0.15
> Reporter: Akash Gupta
> Priority: Major
> Attachments: FSUSA00BDD.pdf, code_textStripper.PNG,
> numbers_without_decimal.PNG
>
>
> I'm using the PDFTextStripperByArea to be specific and trying to extract a
> particular area from the document.
> In the output most the numbers (all but one) have their decimal point
> replaced by a white space. When I copy and paste the text using Abobe
> reader/chrome the decimal point are preserved.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]