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

RTF parser misses text content

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment