Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Add-OfficeOpenDocumentHeading

Module
PSWriteOffice
Inputs
OfficeIMO.OpenDocument.OdtDocument
Outputs
OfficeIMO.OpenDocument.OdtParagraph

Adds a heading to an OpenDocument text document.

Syntax

Add-OfficeOpenDocumentHeading
[-Document <OdtDocument>]
[-Level <Int32>]
[-PassThru]
[-Text] <String>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Add a level-two heading inside an OpenDocument DSL.

Add-OfficeOpenDocumentHeading -Text 'Results' -Level 2

Parameters

-Document OdtDocument optionalpipeline: True (ByValue)
OpenDocument text document. Omit inside New-OfficeOpenDocument -Content.
-Level Int32 optional
Heading level from 1 through 10.
-PassThru SwitchParameter optional
Emit the created heading paragraph.
-Text String requiredposition: 0
Heading text.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.