Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
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

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.