---
name: "odf_set_title"
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_title"
---

# odf\_set\_title(1p)

Set the title of a document using the first heading of the content

## NAME

odf\_set\_title - Set the title of a document using the first heading of the content

## USAGE

odf\_set\_title \<filename\> \<new title\>

## SYNOPSIS

This sample script outputs the current title of an ODF file, then it replaces it using a command line argument as the new title. If the command line doesn't provide a new title, then the program uses the first heading text in the document body. If the document doesn't contain any heading element, nothing is changed.
