Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Export-OfficePdfImage

Module PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Drawing.OfficeImageExportResult

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 Sets

Examples

Authored help example

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 optional
Output image format.
Possible values: Png, Svg, Jpeg, Tiff, Webp, Bmp, Pbm, Tga, Icon
-IgnorePermissionRestrictions SwitchParameter optional
After successful password authentication, explicitly ignore owner-imposed extraction restrictions.
-Options PdfImageExportOptions optional
Optional DPI, scale, thumbnail, encoding, diagnostics, and resource limits.
-OutputPath String requiredposition: 1
Destination folder.
-PageRange String optional
Optional one-based ranges such as 1-3,5.
-PassThru SwitchParameter optional
Emit one structured image export result per saved page.
-Password String optional
Password used to authenticate an encrypted PDF.
-Path String requiredposition: 0
Path to the PDF.
-ReadOptions PdfLoadOptions optional
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.