# Get-OfficePdfImage

Lists image resources, or extracts them with -OutputDirectory.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Pdf.PdfDocument` `System.String[]`

**Outputs**

`OfficeIMO.Pdf.PdfExtractedImage` `System.IO.FileInfo`

**Source**

[GetOfficePdfImageCommand.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePdfImageCommand.cs#L13) 

Lists image resources, or extracts them with -OutputDirectory.

## Syntax

```
Get-OfficePdfImage
[-BaseName <String>]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OutputDirectory <String>]
[-Page <OfficePageRange>]
[-Password <SecureString>]
[-Path] <String[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-get-officepdfimage-string-switchparameter-pdfloadoptions-switchparameter-string-officepagerange-securestring-string-switchparameter-switchparameter)

Parameter set: `Path`

```
Get-OfficePdfImage
[-BaseName <String>]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-NoClobber]
[-OutputDirectory <String>]
[-Page <OfficePageRange>]
[-Password <SecureString>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-get-officepdfimage-string-switchparameter-string-pdfloadoptions-switchparameter-string-officepagerange-securestring-switchparameter-switchparameter)

Parameter set: `LiteralPath`

```
Get-OfficePdfImage
[-BaseName <String>]
-Document <PdfDocument>
[-NoClobber]
[-OutputDirectory <String>]
[-Page <OfficePageRange>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-get-officepdfimage-string-pdfdocument-switchparameter-string-officepagerange-switchparameter-switchparameter)

Parameter set: `Document`

## Examples

### Example 1

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

### Example 2

```powershell
Get-OfficePdfImage -Document 'Value'
```

### Example 3

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

## Parameters

**-BaseName String optional**

BaseName for PDF inspection or extraction.

**-IgnorePermissionRestrictions SwitchParameter optionalsets: Path, LiteralPath**

IgnorePermissionRestrictions for PDF inspection or extraction.

**-LoadOptions PdfLoadOptions optionalsets: Path, LiteralPath**

LoadOptions for PDF inspection or extraction.

**-NoClobber SwitchParameter optional**

NoClobber for PDF inspection or extraction.

**-OutputDirectory String optional**

OutputDirectory for PDF inspection or extraction.

**-Page OfficePageRange optional**

Page for PDF inspection or extraction.

**-Password SecureString optionalsets: Path, LiteralPath**

Password for PDF inspection or extraction.

**-Path String[] requiredposition: 0sets: Path**

Path for PDF inspection or extraction.

**-WhatIf SwitchParameter optional**

Shows what would happen if the command runs.

**-Confirm SwitchParameter optional**

Prompts for confirmation before running the command.

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

LiteralPath for PDF inspection or extraction.

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

Document for PDF inspection or extraction.

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