Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeAsciiDoc

Module
PSWriteOffice
Inputs
OfficeIMO.AsciiDoc.AsciiDocDocument
Outputs
OfficeIMO.AsciiDoc.AsciiDocDocument

Saves an OfficeIMO AsciiDoc document.

Syntax

Save-OfficeAsciiDoc
-Document <AsciiDocDocument>
[-LineEnding <LF|CRLF|CR>]
[-Mode <Preserve|Canonical>]
[-PassThru]
[-Path] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: Document

Examples

Load, edit, and save an AsciiDoc document.

$document = Open-OfficeAsciiDoc -Path .\Guide.adoc
$document | Save-OfficeAsciiDoc -Path .\Guide-normalized.adoc -Mode Canonical

Parameters

-Document AsciiDocDocument requiredpipeline: True (ByValue)
AsciiDoc document to save.
-LineEnding OfficeLineEnding optional
Canonical line ending: LF, CRLF, or CR. Omit it to retain the source preference.
Possible values: LF, CRLF, CR
-Mode AsciiDocWriterMode optional
Writer mode. Preserve retains unchanged source; Canonical emits stable formatting.
Possible values: Preserve, Canonical
-PassThru SwitchParameter optional
Return the saved document.
-Path String requiredposition: 0
Destination path.
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
Prompts for confirmation before running the command.

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.