# Save-OfficeAsciiDoc

Saves an OfficeIMO AsciiDoc document. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.AsciiDoc.AsciiDocDocument`

**Outputs**

`OfficeIMO.AsciiDoc.AsciiDocDocument`

**Source**

[SaveOfficeAsciiDocCommand.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/AsciiDoc/SaveOfficeAsciiDocCommand.cs#L15) 

Saves an OfficeIMO AsciiDoc document.

## Syntax

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

[#](#method-save-officeasciidoc-asciidocdocument-officelineending-asciidocwritermode-switchparameter-string-switchparameter-switchparameter)

Parameter set: `Document`

## Examples

### Load, edit, and save an AsciiDoc document.

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

<!-- PowerForge markdown artifact sha256:45D3EF87FE796CD6B9D6B92FF670F8A767C850434F30D0BDD8ABB7916B265C04 -->
