You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/10/27 16:32:21 UTC

DO NOT REPLY [Bug 48065] New: Problems with save output of HWPF (losing formatting)

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: dev@poi.apache.org
        ReportedBy: jsimas@sinfic.pt


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48065] Problems with save output of HWPF (losing formatting)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48065

--- Comment #3 from Harald Kuhn <ha...@fiprox.com> 2010-06-16 06:25:08 EDT ---
Version 3.6 is also affected

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48065] Problems with save output of HWPF (losing formatting)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48065

--- Comment #2 from JSimas <js...@sinfic.pt> 2009-10-27 08:36:31 UTC ---
Created an attachment (id=24427)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24427)
Output file

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48065] Problems with save output of HWPF (losing formatting)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48065

Sergey Vladimirov <vl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Sergey Vladimirov <vl...@gmail.com> 2011-07-07 13:14:42 UTC ---
Seems to be fixed in trunk (possible due to rewriting table parsing code).
Shall be part of 3.8-beta4

Please, reopen if still affected in 3.8beta-4 or later (or trunk).

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48065] Problems with save output of HWPF (losing formatting)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48065

--- Comment #1 from JSimas <js...@sinfic.pt> 2009-10-27 08:33:19 UTC ---
Created an attachment (id=24426)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24426)
Input file

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org