Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeRtf

Module
PSWriteOffice
Inputs
OfficeIMO.Rtf.RtfDocument
Outputs
System.IO.FileInfo

Saves an RtfDocument to its original path or to a new path.

Syntax

Save-OfficeRtf
-Document <RtfDocument>
[-PassThru]
[[-Path] <String>]
[<CommonParameters>]
#
Parameter set: Document

Examples

Use the native OfficeRtf command.

Save-OfficeRtf -Document $rtf.Document -Path .\Copy.rtf

Parameters

-Document RtfDocument requiredpipeline: True (ByValue)
Document for this operation.
-PassThru SwitchParameter optional
PassThru for this operation.
-Path String optionalposition: 0
Path for this operation.

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.