[
https://issues.apache.org/jira/browse/PDFBOX-4532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16833866#comment-16833866
]
Michael Klink commented on PDFBOX-4532:
---------------------------------------
{quote}[~tilman]> One of the fonts has a weird ToUnicode stream: ...
so the "." decodes as a space. But the content stream uses an "exotic" feature
("ActualText") that we don't support:{quote}
That reminds me of [this stack overflow
question|https://stackoverflow.com/a/22688775/1729265], here the glyph "1" is
mapped to an up arrow in the *ToUnicode* map but corrected to `1` in an
*ActualText* entry.
My assumption back then was
{quote}
Most likely this is done to prevent automated text extraction while allowing
manual copy&paste because Adobe Reader does prefer the ActualText
marked-content sequence entries (thus, manual extraction works all right) while
many programmatic extractors prefer the former method.
{quote}
----
As an aside, though: While not very widely used, I wouldn't call *ActualText*
an _"exotic" feature_...
> 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
> Labels: ActualText
> Attachments: FSUSA00BDD.pdf, PDFBOX-4532-reduced.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]