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

           Summary: Problems with save output of HWPF (losing formatting)
           Product: POI
           Version: 3.5-FINAL
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Hello.

I'm having problems reading and writing (without changes) to file using the
HWPF structure. 

The code i'm using:

     File file = new File("simple.doc"); 
     HWPFDocument document = new HWPFDocument(new FileInputStream(file)); 
     File outputFile = new File("output-" + filename); 
     FileOutputStream outStream = new FileOutputStream(outputFile); 
     try { 
          document.write(outStream); 
     } finally { 
          outStream.close(); 
     } 

The output file is completely modified. 

This behavior only occurs in 3.5-FINAL. Using 3.2-Final the output file is ok.

Check the input and output file using 3.5-FINAL.

-- 
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