0

Sorry if this is not the right forum in the frame. I reused a MS Word template to create a document with LibreOffice. The final output was a huge file, as lots of MS Windows fonts were integrated into the odt document. I unzipped to odt document, deleted the unused fonts. Now how can I compress the folder again to get my odt file back ?

Ziz
  • 1
  • 1

1 Answers1

2

Now how can I compress the folder again to get my odt file back ?

Zip it. When you enter the unzipped directory you can do

zip -r ../{filename}.odt 

where {filename} is the name you want it to be and it will recreate your .odt; hopefully with a smaller size.


Extra comment:

The "mimetype" file should be 1st in the archive (though OO does not care about it other software might). You can force that by doing

zip -r ../{filename}.odt mimetype .
Rinzwind
  • 309,379