https://issues.apache.org/bugzilla/show_bug.cgi?id=51094

           Summary: HWPFDocument.write() does not preserve all embedded
                    documents
           Product: POI
           Version: 3.8-dev
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=26916)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26916)
Test document

When I'm trying to write a Word document it does not preserve an embedded
entries. Attached test document. It's a Word document with another Word
document embedded. Here is a code to reproduce the issue:

String testdoc = "881-test-embedded.doc";
String testdocout = "out.doc";
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(new
File(testdoc)));

HWPFDocument doc = new HWPFDocument(fs);
FileOutputStream out = new FileOutputStream(new File(testdocout));
doc.write(out);
out.close();

The resulting file "out.doc" does not contain embedded document. Is this a bug
or expected behavior?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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