ODFMETA(1)
β¨ ODFMETA(1) β¨
okay bestie, pull up a chair π this is <pink>odfmeta</pink> from the User commands section of the manual β and no, it is not a manual manual, it's a whole vibe. Let's get into it.
π NAME π
odfmeta β list or change the metadata of an ODF file. that's the whole job. she lists, she changes, she slays π
π¦ SYNOPSIS π¦
odfmeta [-l] [-v] [-V] [-c] [-d] [-x metafield...] [-X metafield...]
[-a metafield...] [-A metafield...] [-I metafield...] [-o path]
path
like look at her. so many little flags. a whole alphabet of options. iconic behavior, honestly π
πΈ DESCRIPTION πΈ
so <cyan>odfmeta</cyan> is a program that will list or change the metadata in an OpenDocument file. that's the tea β
and why do you care?? because this is useful for version control systems. yes fr fr β you can change title, keywords, description etc. and not have your diff scream at you every time you open a document.
Path (aka the last argument you hand over) is assumed to be an OpenDocument file of text, spreadsheet or presentation type. so .odt, .ods, .odp β she's flexible, she's versatile, she's not picky π
π OPTIONS π
okay this is the main character section. one bullet per flag, no skips, no shortcuts, because we do not gatekeep here π«Ά
-lβ List (extract) all known metadata fields. just dump the whole vibe check onto your screen.-vor-Vβ Print the version number of the ODF document format. and listen, there's a lil difference between these two besties: if you use-Vit will printversion:before the number, for compatibility with-X. also super important β the version number can't be modified. it is what it is, she's not changing for anybody π-cβ Make field values continuous by normalizing white space. lowkey handy when you're postprocessing with standard (line oriented) text utilities. so if you're piping intogreporawkor whatever, this is your girlie β¨-dβ Update the modification date to the current date and time. timestamp refresh, we love to see it π-xmetafield β Extract the contents of this metafield from the file. Known field names are:creation-datecreatordatedescriptionediting-cyclesediting-durationgeneratorinitial-creatorkeywordlanguageprint-dateprinted-bysubjecttitleuser-defined
All other names are assumed to be user defined. so you can go off-script, she'll just roll with it π«
-Xmetafield β Same as-x, but also preserves/includes the field name. so you get the label and the tea, not just the tea π΅-ametafield β Append a custom metafield to the metadata; but only if a similar field does not exist yet. respectful. doesn't barge in if someone's already there π-Ametafield β Append a custom metafield to the metadata in any case. no chill, no checking, she's adding it periodt π-Imetafield β Append a custom metafield to the metadata and remove any existing similar field. out with the old, in with the new β a whole rebrand, main character energy π-opath β Filename to write modified ODT file to. and if no-ooption is provided, the ODT file will be written to stdout. so you can pipe her somewhere or just let her talk directly to your terminal, dealer's choice π
β EXAMPLES β
here's the good stuff. copy-paste these, they're exact:
odfmeta -l odf-file.odt
odfmeta -I "title:The Little Engine That Could" -A subject:I-think-I-can -o newfile.odt source.odt
first one: just list everything in odf-file.odt. little peek, little gossip π
second one: she's rewriting the title to The Little Engine That Could, adding a subject of I-think-I-can, and writing it all out to newfile.odt, reading from source.odt. that's a whole glow-up in one line π
π SEE ALSO π
go say hi, they're in the same friend group π«Ά
π BUGS π
okay this is the part where we get real. warning warning π¨
All known versions of OpenOffice.org keep only four <meta:user-defined> elements. so if you add more than those... you'll loose them next time you save with OpenOffice.org. gone. poof. absolutely devastating π
and KOffice keeps only one <meta:keyword> element. one!! singular!! so budget accordingly, bestie π
ngl this is exactly the kind of thing you find out the hard way, so consider this your warning β¨
π AUTHOR π
SΓΈren Roug β Original author. thank you for your service, legend π
<div align="center">
and that's the whole page!! πππΈπ¦π
this came from odfpy, dated 02/11/2025, and it's the ODFMETA(1) page. slay, stay hydrated, and always back up your metadata π«Άβ¨
</div>
π¦ 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