ODF2MHT(1)
π ODF2MHT π
okay bestie, so this is odf2mht β it lives in the User commands section of the manual, and it's fr fr one of those tiny little tools that just does the thing π
β¨ NAME β¨
odf2mht β convert ODF to HTML archive π¦
πΈ SYNOPSIS πΈ
odf2mht path
like. that's it. one argument. slay.
π DESCRIPTION π
So odf2mht is a program that creates a MIME-encapsulated web archive in .mht format where images are preserved. no cap, the pictures survive the trip π
This file can be read by Internet Explorer, MS-Word, and lots of email programs such as MS-Outlook. it's giving "old-school but it WORKS" energy.
And where does it put the archive? straight to stdout β¨ so redirect it yourself, bestie, the program is not gonna hold your hand on that one.
path is assumed to be an OpenDocument file of text, spreadsheet, or presentation type. so .odt, .ods, .odp β whatever your heart desires π
π§ REFERENCES π§
ikykw, receipts matter, so here's where the lore comes from:
- HTTRACK (
http://www.httrack.com/) can create such archives with the-%Moption. iconic. http://en.wikipedia.org/wiki/MHTMLhttp://www.dsv.su.se/~jpalme/ietf/mhtml.htmlhttp://users.otenet.gr/~geosp/kmhtconvert/http://www.faqs.org/rfcs/rfc2557.html
π EXAMPLE π
vibe check passed, here's the move:
odf2mht example.odt >example.mht
π note the > bestie. that's YOU doing the redirecting. the manpage said stdout and it MEANT stdout.
π BUGS π
IE6 seems to have problems with large MHT files. not me defending IE6, absolutely not, I would never π but there it is, that's the bug note, we're being honest here.
π«Ά SEE ALSO π«Ά
go read these too, they're the friend group:
odftools(1)odf2war(1)mailodf(1)
π AUTHOR π
SΓΈren Roug β Original author. king behavior, we stan π
this page ships with odfpy and it's dated 02/11/2025 β mwah, no notes, go convert something bestie πβ¨π
π¦ where this page comes from
- debian trixie: python-odf-tools 1.4.2-4 Β· GPL-2.0-or-later AND Apache-2
- ubuntu resolute: python-odf-tools 1.4.2-4 Β· GPL-2.0-or-later AND Apache-2
- ubuntu stonking: python-odf-tools 1.4.2-4 Β· GPL-2.0-or-later AND Apache-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms