# Join-OfficeWordDocument

Appends one or more Word documents into a base Word document.

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 

Aliases: Merge-OfficeWordDocument, WordDocumentJoin

**Module**

`PSWriteOffice`

**Aliases**

`Merge-OfficeWordDocument` `WordDocumentJoin`

**Inputs**

`OfficeIMO.Word.WordDocument`

**Outputs**

`OfficeIMO.Word.WordDocument`

**Source**

[JoinOfficeWordDocumentCommand.cs:34](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/JoinOfficeWordDocumentCommand.cs#L34) 

Appends one or more Word documents into a base Word document.

## Syntax

```
Join-OfficeWordDocument
[-AppendPath] <String[]>
[-Open]
[-OutputPath <String>]
[-PassThru]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-join-officeworddocument-string-switchparameter-string-switchparameter-string)

Parameter set: `Path`

```
Join-OfficeWordDocument
[-AppendPath] <String[]>
-Document <WordDocument>
[-Open]
[-OutputPath <String>]
[-PassThru]
[<CommonParameters>]
```

[#](#method-join-officeworddocument-string-worddocument-switchparameter-string-switchparameter)

Parameter set: `Document`

## Description

Uses OfficeIMO.Word document append support and preserves the wrapper as an operator-friendly merge command.

## Examples

### Merge a cover, body, and appendix into a release packet.

```powershell
$proof = @(
    Join-OfficeWordDocument -Path .\Cover.docx -AppendPath .\Body.docx, .\Appendix.docx -OutputPath .\ReleasePacket.docx
    Get-OfficeWordStatistics -Path .\ReleasePacket.docx |
        Select-Object -Property Paragraphs, Tables, Images
)
$proof
```

Appends the source documents with OfficeIMO.Word and then reads back basic structure from the merged output.

### Append into an already-open document object.

```powershell
$doc = Get-OfficeWord -Path .\Base.docx
$doc | Join-OfficeWordDocument -AppendPath .\Section1.docx, .\Section2.docx -PassThru |
    Save-OfficeWord -Path .\Combined.docx
```

Keeps the wrapper thin by piping the OfficeIMO document object through append and save commands.

## Parameters

**-AppendPath String[] requiredposition: 1aliases: SourcePath**

Documents to append to the base document.

**-Open SwitchParameter optionalaliases: Show**

Open the saved output with the shell.

**-OutputPath String optional**

Optional output path. When omitted for path input, the base document is updated in place.

**-PassThru SwitchParameter optional**

Emit the merged Word document instead of disposing it.

**-Path String requiredposition: 0aliases: BasePath, InputPathsets: Path**

Base document path.

**-Document WordDocument requiredpipeline: True (ByValue)sets: Document**

Base document object.

## 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:3007EA0B7B8AEA2615A91B46BB8D1E995FDAE25FDA35812BD48FBA311A140A73 -->
