[
https://issues.apache.org/jira/browse/PDFBOX-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-2138:
------------------------------------
Attachment: PDFBOX-2138.txt
PDFBOX-2138.pdf
I'm not a specialist in text extraction here, but I have attached the single
PDF page (decompressed) with the problem and the text. A look at the stream
shows that the text is there 3 times, e.g. this line (edit the PDF with
NOTEPAD++) to see it:
{code}
0 -1.174 TD
[(r)6.2(e)-3.3(all)-8(y)10( declined? )]TJ
{code}
"TD" = text position
"TJ" = show text
Of course that doesn't explain why there are spaces the third time only.
> Corrupted words when using PDFTextStripper
> ------------------------------------------
>
> Key: PDFBOX-2138
> URL: https://issues.apache.org/jira/browse/PDFBOX-2138
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 1.8.5, 1.8.6, 2.0.0
> Environment: Windows 7 / 64 bit
> Reporter: Walter Kehl
> Attachments: PDFBOX-2138.pdf, PDFBOX-2138.txt,
> banking-banana-skins-2014.pdf, banking-banana-skins-2014.txt
>
>
> >> I am using PDFTextStripper (embedded into another application) to get
> >> the raw text of PDFs so far with good results but recently a PDF file
> >> has appeared where the output of the PDFTextStripper was corrupted. I
> >> got sentences like:
> >>
> >>
> >>
> >> "There is al o con ern that b nkers may be pushed to misprice risk
> >> (No. 6) by the pres ures of c mpetition and an abunda ce of central b
> >> nk-provided liquidity."
> > Additionally some portions of text appear
> > twice in the output: first correctly and then corrupted. I have
> > attached an output created with PDFBox's command line options.
> > If you compare lines 357- 365 with lines 421-429 you see that it is
> > the same paragraph, first ok and then with characters missing. In the
> > original source this paragraph is unique.
> > The same seems to happen for the other instances where text is corrupted.
> I also tried it directly on the command line with the same results: input and
> output files are attached.
--
This message was sent by Atlassian JIRA
(v6.2#6252)