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

Tika parse of some PDF files removes all spaces between words

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.8
    • None
    • None
    • None
    • Windows XP 3, OpenSuse 11.2

    Description

      In the case of some pdf files (not all), when Tika.parse(InputStream) method is used, the content extracted from the returned reader has all spaces removed. This only happens for some PDF files: An example where this happens is: JavaEE6Tutorial.pdf (available from Oracle). There are many such files where this bug can be seen. I have even tried Tika snapshot 0.9 and the bug remains.

      When PDFTextStripper is directly used, the extracted content is correct, with the spaces between words retained.

      Attachments

        1. JavaEE6Tutorial.pdf
          5.30 MB
          Ajay Vohra

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              goblue2003 Ajay Vohra
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: