# Get-OfficeWordImage

Gets images from a document, section or paragraph.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordDocument` `OfficeIMO.Word.WordParagraph` `OfficeIMO.Word.WordSection` `System.String[]`

**Outputs**

`OfficeIMO.Word.WordImage`

**Source**

[GetOfficeWordImageCommand.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Word/GetOfficeWordImageCommand.cs#L10) 

Gets images from a document, section or paragraph.

## Syntax

```
Get-OfficeWordImage
[-Document <WordDocument>]
[<CommonParameters>]
```

[#](#method-get-officewordimage-worddocument)

Parameter set: `Document`

```
Get-OfficeWordImage
[-Path] <String[]>
[<CommonParameters>]
```

[#](#method-get-officewordimage-string)

Parameter set: `Path`

```
Get-OfficeWordImage
-LiteralPath <String[]>
[<CommonParameters>]
```

[#](#method-get-officewordimage-string-2)

Parameter set: `LiteralPath`

```
Get-OfficeWordImage
-Section <WordSection>
[<CommonParameters>]
```

[#](#method-get-officewordimage-wordsection)

Parameter set: `Section`

```
Get-OfficeWordImage
-Paragraph <WordParagraph>
[<CommonParameters>]
```

[#](#method-get-officewordimage-wordparagraph)

Parameter set: `Paragraph`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Add Images to Word Documents](/docs/word/images/) Guide
  
  Insert pictures into DOCX files from files, streams or bytes, size them, wrap text around them, add alt text, and crop existing images with OfficeIMO.Word.

## Examples

### Example 1

```powershell
Get-OfficeWordImage -Document 'Value'
```

### Example 2

```powershell
Get-OfficeWordImage -LiteralPath @('C:\Path')
```

### Example 3

```powershell
Get-OfficeWordImage -Paragraph 'Value'
```

## Parameters

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

Document for this inspection.

**-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path**

Path for this inspection.

**-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

LiteralPath for this inspection.

**-Section WordSection requiredpipeline: True (ByValue)sets: Section**

Section for this inspection.

**-Paragraph WordParagraph requiredpipeline: True (ByValue)sets: Paragraph**

Paragraph for this inspection.

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