Skip to main content

Office documents

Office files are ZIP containers. filerepack extracts them, packs nested images and minifies XML, then rewrites the archive. OOXML-like files prefer Info-ZIP zip when it is on PATH so extra 7-Zip fields do not break Word/Excel.

Word, Excel, PowerPoint

filerepack repack contract.docx
filerepack repack workbook.xlsx --dryrun --stats
filerepack repack slides.pptx --progress

Needs 7zz or 7z. Install zip as well for OOXML.

OpenDocument and iWork

filerepack repack report.odt
filerepack repack sheet.ods
filerepack repack deck.odp
filerepack repack notes.pages

.otf is packed as ODF only when the file is a ZIP (OpenType fonts are skipped).

Bulk a documents folder

filerepack bulk ./documents --include-ext docx,xlsx,pptx,odt,ods,odp --jobs auto --progress

See the format matrix for the full OOXML / ODF / iWork extension list.