[ https://issues.apache.org/jira/browse/PDFBOX-5822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17847314#comment-17847314 ]
Tilman Hausherr edited comment on PDFBOX-5822 at 5/17/24 1:52 PM: ------------------------------------------------------------------ Commit 1917785 from Tilman Hausherr in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1917785 ] PDFBOX-5660, PDFBOX-5822: revert commit due to incompatibility with PDFTextStripperByArea Commit 1917786 from Tilman Hausherr in branch 'pdfbox/branches/3.0' [ https://svn.apache.org/r1917786 ] PDFBOX-5660, PDFBOX-5822: revert commit due to incompatibility with PDFTextStripperByArea Commit 1917787 from Tilman Hausherr in branch 'pdfbox/trunk' [ https://svn.apache.org/r1917787 ] PDFBOX-5660, PDFBOX-5822: revert commit due to incompatibility with PDFTextStripperByArea Commit 1917788 from Tilman Hausherr in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1917788 ] PDFBOX-5822: add test for PDFTextStripperByArea Commit 1917789 from Tilman Hausherr in branch 'pdfbox/branches/3.0' [ https://svn.apache.org/r1917789 ] PDFBOX-5822: add test for PDFTextStripperByArea Commit 1917790 from Tilman Hausherr in branch 'pdfbox/trunk' [ https://svn.apache.org/r1917790 ] PDFBOX-5822: add test for PDFTextStripperByArea was (Author: tilman): Commit 1917785 from Tilman Hausherr in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1917785 ] PDFBOX-5660, PDFBOX-5822: revert commit due to incompatibility with PDFTextStripperByArea Commit 1917786 from Tilman Hausherr in branch 'pdfbox/branches/3.0' [ https://svn.apache.org/r1917786 ] PDFBOX-5660, PDFBOX-5822: revert commit due to incompatibility with PDFTextStripperByArea Commit 1917787 from Tilman Hausherr in branch 'pdfbox/trunk' [ https://svn.apache.org/r1917787 ] PDFBOX-5660, PDFBOX-5822: revert commit due to incompatibility with PDFTextStripperByArea Commit 1917788 from Tilman Hausherr in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1917788 ] PDFBOX-5822: add test for PDFTextStripperByArea Commit 1917790 from Tilman Hausherr in branch 'pdfbox/trunk' [ https://svn.apache.org/r1917790 ] PDFBOX-5822: add test for PDFTextStripperByArea Commit 1917790 from Tilman Hausherr in branch 'pdfbox/trunk' [ https://svn.apache.org/r1917790 ] PDFBOX-5822: add test for PDFTextStripperByArea > IllegalArgumentException: Parameter must be 1-based, but is 0 when using > PDFTextStripperByArea > ---------------------------------------------------------------------------------------------- > > Key: PDFBOX-5822 > URL: https://issues.apache.org/jira/browse/PDFBOX-5822 > Project: PDFBox > Issue Type: Bug > Components: Text extraction > Reporter: Tilman Hausherr > Priority: Major > > As reported by Pascal Schumacher in the users mailing list > https://lists.apache.org/thread/yb42j9s5vp8jsjog9msplbc05y1xqwv3 > java.lang.IllegalArgumentException: Parameter must be 1-based, but is 0 > at > org.apache.pdfbox.text.PDFTextStripper.setStartPage(PDFTextStripper.java:956) > at > org.apache.pdfbox.text.PDFTextStripperByArea.extractRegions(PDFTextStripperByArea.java:117) > this is because of this earlier seemingly "harmless" commit > https://github.com/apache/pdfbox/commit/5c0abf94367c12c9ac0b464046784d456ce4caf5 > that broke PDFTextStripperByArea because it has two calls with 0 parameter. > This wasn't discovered because we have no tests for PDFTextStripperByArea 😬 -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org