Cmdlet
Get-OfficePdfAttachment
Lists embedded files, or extracts them with -OutputDirectory.
Syntax
Get-OfficePdfAttachment
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Name <String>]
[-NoClobber]
[-OutputDirectory <String>]
[-Password <SecureString>]
[-Path] <String[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
PathGet-OfficePdfAttachment
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Name <String>]
[-NoClobber]
[-OutputDirectory <String>]
[-Password <SecureString>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
LiteralPathGet-OfficePdfAttachment
-Document <PdfDocument>
[-Name <String>]
[-NoClobber]
[-OutputDirectory <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
DocumentExamples
Example 1
Get-OfficePdfAttachment -Path @('C:\Path')Example 2
Get-OfficePdfAttachment -Document 'Value'Example 3
Get-OfficePdfAttachment -LiteralPath @('C:\Path')Parameters
- -IgnorePermissionRestrictions SwitchParameter
- IgnorePermissionRestrictions for PDF inspection or extraction.
- -LoadOptions PdfLoadOptions
- LoadOptions for PDF inspection or extraction.
- -Name String
- Name for PDF inspection or extraction.
- -NoClobber SwitchParameter
- NoClobber for PDF inspection or extraction.
- -OutputDirectory String
- OutputDirectory for PDF inspection or extraction.
- -Password SecureString
- Password for PDF inspection or extraction.
- -Path String[]
- Path for PDF inspection or extraction.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
- -LiteralPath String[]
- LiteralPath for PDF inspection or extraction.
- -Document PdfDocument
- 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.