https://bz.apache.org/bugzilla/show_bug.cgi?id=66467

            Bug ID: 66467
           Summary: Unsupported Sprm operation: 58 (0x3A) when extracting
                    data from a Word 97 document
           Product: POI
           Version: 5.2.2-FINAL
          Hardware: Macintosh
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 38497
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38497&action=edit
Word document reproducing the bug

When extracting the text of a Word 97 document I get the following INFO in the
logs (using poi-scratchpad 5.2.3): 

2023-02-06 10:15:08,983 INFO  [org.apa.poi.hwp.spr.SectionSprmUncompressor]
(executor-thread-0) Unsupported Sprm operation: 58 (0x3A)


The following unit test reproduces the issue (using the attached .doc file): 

    @Test
    void testSprmOperation58() throws IOException {
        try (HWPFDocument hwpfDocument = openSampleFile( "hello_poi.doc" )) {
            WordExtractor extractor = new WordExtractor(hwpfDocument);
            assertEquals("Hello POI", extractor.getText().trim());
        }
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to