[
https://issues.apache.org/jira/browse/PDFBOX-2998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14939286#comment-14939286
]
John Hewson commented on PDFBOX-2998:
-------------------------------------
{quote}
Given the experience you have I think you can provide a lot of input (and maybe
code) to enhance the current text extraction. I'm sure you can outline some
doable tasks others can work on.
{quote}
The algorithm's aren't _that_ hard to understand, but the implementations have
a lot of moving parts which are hard to get right. I can't offer much direct
assistance without divulging proprietary code. Given that in a PDF we already
know where the text is, there's not much advantage to be had by implementing a
more sophisticated line finding algorithm - those are really for doing OCR from
bitmaps. PDFBox's simple window-based method works fine. For higher-level
analysis such as finding titles, headings, footnotes, etc. I don't think it's
something which belongs in PDFBox as it needs to be tailored to a specific
purpose, e.g. newspapers, academic papers, recipes.
We could certainly improve rotated and vertical text extraction but that's not
"layout analysis", which is a specific concept.
> Document layout analysis tools needed
> -------------------------------------
>
> Key: PDFBOX-2998
> URL: https://issues.apache.org/jira/browse/PDFBOX-2998
> Project: PDFBox
> Issue Type: New Feature
> Components: Text extraction
> Affects Versions: 2.0.0
> Reporter: Andreas Meier
>
> PDFBox will need some document layout analysis tools to extract text
> correctly.
> At the Moment the text of a document is extracted using the position of
> single characters.
> This may lead to wrong results, due to the format of the file
> For a good extraction, layout analysis and segmentation has to be done in a
> previous step.
> https://code.google.com/p/lapdftext
> Would be a good solution for a layout analysis tool, unfortunately, it
> heavily relies on other libraries and needs Java 1.6 to run.
> The layout analysis tool should segementate the file and return a list or set
> of rectangles.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]