API Reference
Cmdlet
Export-OfficePdfImage
Exports PDF pages through the shared PNG, JPEG, TIFF, SVG, or WebP image contract.
Remarks
Exports PDF pages through the shared PNG, JPEG, TIFF, SVG, or WebP image contract.
Examples
Export selected pages as PNG files.
PS>
Export-OfficePdfImage -Path .\Report.pdf -OutputPath .\Pages -PageRange '1-3,5'
Writes the selected pages and returns normalized image results with rendering diagnostics.
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
Export-OfficePdfImage [-Format <Png|Svg|Jpeg|Tiff|Webp>] [-IgnorePermissionRestrictions] [-Options <PdfImageExportOptions>] -OutputPath <String> [-PageRange <String>] [-Password <String>] -Path <String> [-ReadOptions <PdfReadOptions>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Format OfficeImageExportFormat
- Output image format.
- Possible values:
Png,Svg,Jpeg,Tiff,Webp - 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.
- Password String
- Password used to authenticate an encrypted PDF.
- Path String
- Path to the PDF.
- ReadOptions PdfReadOptions
- Optional bounded PDF parsing settings.
Outputs
OfficeIMO.Drawing.OfficeImageExportResult