Cmdlet
Export-OfficePdfImage
Exports PDF pages through the shared PNG, JPEG, TIFF, SVG, or WebP image contract.
Syntax
Export-OfficePdfImage [-Format <OfficeImageExportFormat>] [-IgnorePermissionRestrictions] [-Options <PdfImageExportOptions>] [-OutputPath] <String> [-PageRange <String>] [-PassThru] [-Password <String>] [-Path] <String> [-ReadOptions <PdfLoadOptions>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Export selected pages as PNG files.
Export-OfficePdfImage -Path .\Report.pdf -OutputPath .\Pages -PageRange '1-3,5'Writes the selected pages. Add -PassThru to receive normalized image results with rendering diagnostics.
Parameters
- -Format OfficeImageExportFormat
- Output image format.
- Possible values:
Png,Svg,Jpeg,Tiff,Webp,Bmp,Pbm,Tga,Icon - -IgnorePermissionRestrictions SwitchParameter
- After successful password authentication, explicitly ignore owner-imposed extraction restrictions.
- -Options PdfImageExportOptions
- Optional DPI, scale, thumbnail, encoding, diagnostics, and resource limits.
- -OutputPath String
- Destination folder.
- -PageRange String
- Optional one-based ranges such as 1-3,5.
- -PassThru SwitchParameter
- Emit one structured image export result per saved page.
- -Password String
- Password used to authenticate an encrypted PDF.
- -Path String
- Path to the PDF.
- -ReadOptions PdfLoadOptions
- Optional bounded PDF parsing settings.
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.