---
name: "odf_set_fields"
section: "1p"
platform: "linux"
package: "libopenoffice-oodoc-perl"
version: "2.125-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/odf_set_fields"
---

# odf\_set\_fields(1p)

Set names & values for user-defined fields

## NAME

odf\_set\_fields - Set names & values for user-defined fields

## USAGE

odf\_set\_fields \<filename\> -options

## SYNOPSIS

Sample script updating or creating 4 user-defined fields of an ODF file and adding new keywords. Existing keywords are preserved. Old user-defined fields names and values are deleted and replaced. The revision number of the document is incremented by 1.

The keywords must be passed as a comma-separated list through the -keywords option.

The user-defined fields/options are : -contact -organization -status -diffusion

Examples:

odf\_set\_fields foo.odt -contact "Donald Duck" -organization "Genicorp"

odf\_set\_fields foo.odt -status "Complete" -keywords "software, office"
