Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0
-
None
-
Windows
Description
org.apache.pdfbox.text.PDFTextStripper does not really support extraction of content between bookmarks. from looking at the code in pdfbox-parent/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java it is clear that is using the bookmarks that the user provided to determine the pages to extract content from.
There is a business need to extract the text that lies strictly between bookmarks. Refer to the attached example program and sample file.
The extraction to the sections in the first page all return the entire first page instead of the content inside each bookmark.