# New-OfficeRtf

Creates an RTF document with plain paragraph content.

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 **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: OfficeRtf, RtfNew

**Module**

`PSWriteOffice`

**Aliases**

`OfficeRtf` `RtfNew`

**Inputs**

`System.String[]`

**Outputs**

`System.IO.FileInfo` `OfficeIMO.Rtf.RtfDocument`

**Source**

[NewOfficeRtfCommand.cs:21](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Rtf/NewOfficeRtfCommand.cs#L21) 

Creates an RTF document with plain paragraph content.

## Syntax

```
New-OfficeRtf
[-NoSave]
[-PassThru]
[-Path] <String>
[[-Text] <String[]>]
[<CommonParameters>]
```

[#](#method-new-officertf-switchparameter-switchparameter-string-string)

Parameter set: `All Parameter Sets`

## Examples

### Create a small RTF file.

```powershell
$file = New-OfficeRtf -Path .\Report.rtf -Text 'Summary', 'Ready for review' -PassThru
Get-OfficeRtf -Path $file.FullName
```

Creates an RTF document with two paragraphs and returns the file.

## Parameters

**-NoSave SwitchParameter optional**

Return the OfficeIMO RTF document without saving.

**-PassThru SwitchParameter optional**

Emit a FileInfo for chaining.

**-Path String requiredposition: 0aliases: FilePath, OutputPath**

Destination path for the RTF file.

**-Text String[] optionalposition: 1pipeline: True (ByValue)**

Plain paragraph text to add to the document.

## 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:F51887BE70A7B3B3E83BC1857A3F32F7F2B410B6B9FC3E331EA3B16625127D1D -->
