Am using docx4j to update properties and fields withing documents as they are being checked into a document management system called Documentum.
Have noticed that the documents are considerably smaller after being save to zip but the document appears to be visibly the same can someone please provide a possible explanation for this and what is being lost.
Below is that code that I am using to save the file to zip and convert to a bytearray
- Code: Select all
private ByteArrayOutputStream convertToByteArray() {
SaveToZipFile saver = new SaveToZipFile(wordML);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
saver.save(baos);
return baos;
}