API Reference
Cmdlet
Get-OfficePdfImage
Gets or extracts image resources from a PDF.
Remarks
Gets or extracts image resources from a PDF.
Examples
Extract images from selected pages.
PS>
$proof = @(
Get-OfficePdfImage -Path .\Examples\Documents\Report.pdf -PageRange '1-2'
Get-OfficePdfImage -Path .\Examples\Documents\Report.pdf -OutputDirectory .\Examples\Documents\PdfImages -BaseName 'report-image'
)
$proof
Returns image metadata or writes extracted images to disk.
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.
Syntax
Get-OfficePdfImage [-BaseName <String>] [-OutputDirectory <String>] [-PageRange <String>] -Path <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BaseName String
- Base file name used when extracting images to disk.
- OutputDirectory String
- Optional directory where images should be written.
- PageRange String
- Optional page ranges such as 1-3,5.
- Path String
- PDF file path.
Outputs
OfficeIMO.Pdf.PdfExtractedImage System.IO.FileInfo