Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-4296

"Parameter must be 1-based, but is -1" when using Tika with PDFBox 2.0.32

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.2
    • 3.0.0, 2.9.3
    • parser
    • None

    Description

      I just upgraded my pdfbox dependency to 2.0.32 and any Tika#parseToString of a pdf file seems to produce the following warning:

      WARN  o.apache.pdfbox.text.PDFTextStripper - Parameter must be 1-based, but is -1
      

      The behavior is the same as with 2.0.31, it's just that pdfbox is apparently not too happy anymore with the way it's used by Tika.

      This new warning was apparently introduced by PDFBOX-5822.

      Just in case it's not actually any file, here is one with which I reproduce: pdf.pdf

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tilman Tilman Hausherr
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment