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

            Bug ID: 68615
           Summary: getSummaryInformation brokes document images
           Product: POI
           Version: 5.2.3-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: HPSF
          Assignee: dev@poi.apache.org
          Reporter: 1u...@protonmail.com
  Target Milestone: ---

Created attachment 39580
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=39580&action=edit
original sample file

I tried to change the document's Author with setAuthor(), then i figured even
if i just called getSummaryInformation() and save the file, document's images
are corrupted and seen as "Read Error"

My test code is:

POIFSFileSystem originalFile = new File(file);
HWPFDocument doc = new HWPFDocument(originalFile);
SummaryInformation summaryInfo = doc.getSummaryInformation();

FileOutputStream outputStream = new FileOutputStream(tmpFile);
doc.write(outputStream);

outputStream.close();
doc.close();

Is problem is specific to document or POI can't process file correctly?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to