ODFUSERFIELD(1)
π odfuserfield β the manual, but make it a group chat π
okay bestie, grab your iced coffee because today we're talking about odfuserfield, a User commands classic. She lives in section 1 of the manual. Let's get into it β¨
πΈ NAME πΈ
odfuserfield β list or change the user-field declarations in an ODF file π¦
β¨ SYNOPSIS β¨
odfuserfield [-l] [-L] [-x field...] [-X field...] [-s field:value...]
[-o path] path
π DESCRIPTION π
so. odfuserfield is a program that will list or change the user variable declarations in an OpenDocument file. that's the whole vibe. π
here's the tea tho β there are two kinds of variables in OpenDocument and you gotta know the difference:
- Simple variables can take different values at different positions, throughout a document. (wandering little free spirits π)
- User variables have the same value throughout a document. (main character energy, one value, everywhere, no cap β)
and because user variables are global like that, it's safe to change them with an external application. periodt. π
use odfuserfield to fill out form letters before printing, or before handing them over to the user. it's giving automated stationery. π
Path is assumed to be an OpenDocument file of text, spreadsheet or presentation type.
π OPTIONS π
-lβ List (extract) all known user-fields. just gimme the names bestie π-Lβ List (extract) all known user-fields with type and value. the full package, the deluxe version, the one with receipts π-xfield β Extract the contents of this field from the file. one field, one scoop π-Xfield β Same as-x, but also preserves/includes the field name and type. so you know exactly who's talking π·οΈ-sfield:value β Set the value of an existing user field. The field type will be the same. (note: existing!! don't come for me if the field isn't there π)-opath β Filename to write the modified ODT file to. If no-ooption is provided, the ODT file will be written to stdout. yes, stdout. pipe it, redirect it, live your truth π«Ά
π EXAMPLE π
go off:
odfuserfield -L odf-file
π― SEE ALSO π―
formail(1)id3tag(1)
π§ TODO π§
Implement formulas. See OpenDocument v1.0 specification section 6.3.5. This requires a different syntax for -s arguments.
fr fr, this one's still on the to-do list β so if you're out here expecting formulas, that's a no for now π
π AUTHORS π
- SΓΈren Roug β Original author
- Michael Howitz β
gocept gmbh & co. kgβ Refactoring
and that's the whole page diva π this cutie ships as part of odfpy, dated 02/11/2025 β¨ go forth and fill out those form letters, you absolute icon ππ
π¦ 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