API Reference

Cmdlet

Export-OfficePdfImage

Namespace PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Drawing.OfficeImageExportResult

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

Authored help example

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>] [-Options <PdfImageExportOptions>] -OutputPath <String> [-PageRange <String>] -Path <String> [-ReadOptions <PdfReadOptions>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Format OfficeImageExportFormat optionalposition: namedpipeline: Falsevalues: 5
Output image format.
Possible values: Png, Svg, Jpeg, Tiff, Webp
Options PdfImageExportOptions optionalposition: namedpipeline: False
Optional DPI, scale, thumbnail, encoding, diagnostics, and resource limits.
OutputPath String requiredposition: 1pipeline: False
Destination folder.
PageRange String optionalposition: namedpipeline: False
Optional one-based ranges such as 1-3,5.
Path String requiredposition: 0pipeline: False
Path to the PDF.
ReadOptions PdfReadOptions optionalposition: namedpipeline: False
Optional bounded PDF parsing settings.

Outputs

OfficeIMO.Drawing.OfficeImageExportResult