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

RTF parser misses text content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10
    • 1.22
    • None
    • None

    Description

      We have a lot of Outlook msg files that have RTF body content. Tika is not finding any text within these messages. It appears to be a mixture of RTF and HTML.

      I've extracted an example RTF body (see attachment) for use with the following test case:

      ByteArrayOutputStream bytes = new ByteArrayOutputStream()
      rtfParser.parse(
              this.class.getResourceAsStream("/problems/no-text.rtf"),
              new EmbeddedContentHandler(new BodyContentHandler(bytes)),
              new Metadata(), new ParseContext()
      );
      assertTrue("Document is missing required text", bytes.toByteArray().length > 0)
      

      Attachments

        1. no-text.rtf
          2 kB
          Mike Cantrell

        Issue Links

          Activity

            People

              tallison Tim Allison
              mcantrell Mike Cantrell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: