# Add-OfficeOpenDocumentParagraph

Adds a paragraph to an OpenDocument text document. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

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

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.OpenDocument.OdtDocument`

**Outputs**

`OfficeIMO.OpenDocument.OdtParagraph`

**Source**

[AddOfficeOpenDocumentParagraphCommand.cs:15](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/OpenDocument/AddOfficeOpenDocumentParagraphCommand.cs#L15) 

Adds a paragraph to an OpenDocument text document.

## Syntax

```
Add-OfficeOpenDocumentParagraph
[-Document <OdtDocument>]
[-PassThru]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-add-officeopendocumentparagraph-odtdocument-switchparameter-string)

Parameter set: `All Parameter Sets`

## Examples

### Add body text in the OpenDocument DSL.

```powershell
New-OfficeOpenDocument -Kind Text -Path .\Report.odt -Content { Add-OfficeOpenDocumentParagraph -Text 'Generated by PSWriteOffice' }
```

## Parameters

**-Document OdtDocument optionalpipeline: True (ByValue)**

OpenDocument text document. Omit inside New-OfficeOpenDocument -Content.

**-PassThru SwitchParameter optional**

Emit the created paragraph.

**-Text String requiredposition: 0**

Paragraph 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:DECF0052221F5B2E02C790C4C09301161CBE4A968ADB3E2F1E504E03E3C87CE1 -->
