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

Add support for parsing binary data in RTF files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0
    • None
    • parser
    • None

    Description

      The current RTF parser doesn't process \bin control words yet. These control words are followed by a specific amount of binary data. Because of this, the RTF parser trips over some of these bytes in a number of (classified) documents.

      I've implemented processing of the \bin control word, but it required of the core parsing algorithm. IMHO, it also improved readability of the code. I hope you will accept this patch. Please let me know if the patch requires modifications.

      Apart from the \bin code word, this patch also makes the parser stop after reading the document-closing '}' character. In a number of files (again, classified), the parser would include non-readable characters that appeared after this closing brace.

      Attachments

        1. bin.patch
          29 kB
          Arjohn Kampman
        2. bin2.patch
          29 kB
          Arjohn Kampman
        3. bin3.patch
          18 kB
          Arjohn Kampman
        4. logo.zip
          18 kB
          Arjohn Kampman

        Activity

          People

            mikemccand Michael McCandless
            arjohn Arjohn Kampman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: