Hi,

Hi,
See attached the project. The word documents are not written completely.
Hi,
Could you test it with my Maven project? The link you have send to me, was for the .NET ones.
Hi,
I took the 10.8.0 into the project I send you and I’m still able to reproduce it. If you are using a FileOuputStream and no BufferedOutputStream it should work.
Hi
Daniel,
BufferedInputStream content = new BufferedInputStream(new FileInputStream(“C:\test\office2003.doc”));ImageSaveOptions saveOptions
= new ImageSaveOptions(SaveFormat.PNG);
saveOptions.setTiffCompression(TiffCompression.CCITT_4);
saveOptions.setResolution(200);
saveOptions.setJpegQuality(80);Document document
= new Document(content);
int pageCount = document.getPageCount();DocumentBuilder builder
= new DocumentBuilder(document); for (int i = 0; i < pageCount; i++)
{
saveOptions.setPageIndex(i);
saveOptions.setPageCount(1);}File tempFile </span><font color="BLUE" style="background-color: rgb(255, 255, 255); ">=</font><span style="background-color: rgb(255, 255, 255);"> File</span><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>.</b></font><span style="background-color: rgb(255, 255, 255);">createTempFile</span><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>(</b></font><font color="PURPLE" style="background-color: rgb(255, 255, 255); ">"word-rendering"</font><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>,</b></font><span style="background-color: rgb(255, 255, 255);"> </span><font color="PURPLE" style="background-color: rgb(255, 255, 255); ">".png"</font><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>,</b></font><span style="background-color: rgb(255, 255, 255);"> </span><font color="RED" style="background-color: rgb(255, 255, 255); "><b>new</b></font><span style="background-color: rgb(255, 255, 255);"> File</span><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>(</b></font><font color="PURPLE" style="background-color: rgb(255, 255, 255); ">"."</font><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>)</b></font><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>)</b></font><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>;</b></font><span style="background-color: rgb(255, 255, 255);"> </span><span style="background-color: rgb(255, 255, 0);">BufferedOutputStream bos <font color="BLUE">=</font> <font color="RED"><b>null</b></font><font color="BLUE"><b>;</b></font> FileOutputStream fos <font color="BLUE">=</font> <font color="RED"><b>new</b></font> FileOutputStream<font color="BLUE"><b>(</b></font>tempFile<font color="BLUE"><b>)</b></font><font color="BLUE"><b>;</b></font> bos <font color="BLUE">=</font> <font color="RED"><b>new</b></font> BufferedOutputStream<font color="BLUE"><b>(</b></font>fos<font color="BLUE"><b>)</b></font><font color="BLUE"><b>;</b></font></span><span style="background-color: rgb(255, 255, 255);"> document</span><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>.</b></font><span style="background-color: rgb(255, 255, 255);">save</span><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>(</b></font><span style="background-color: rgb(255, 255, 255);">bos</span><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>,</b></font><span style="background-color: rgb(255, 255, 255);"> saveOptions</span><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>)</b></font><font color="BLUE" style="background-color: rgb(255, 255, 255); "><b>;</b></font><span style="background-color: rgb(255, 255, 255);"> </span><span style="background-color: rgb(255, 255, 0);">bos<font color="BLUE"><b>.</b></font>flush<font color="BLUE"><b>(</b></font><font color="BLUE"><b>)</b></font><font color="BLUE"><b>;</b></font></span><span style="background-color: rgb(255, 255, 255);">
Hi Daniel,
Thanks for your nice little bug:) The bug is fixed. The fix will be published within the next release 29.02.2012.
Usually user closes all streams after use. We also are closing all streams in all our unit tests (it's just a reflex:). So nobody still reported this bug:)
Regards,
The issues you have found earlier (filed as WORDSJAVA-485) have been fixed in this .NET update and this Java update.