Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 161
Forks 15
PowerShell Gallery downloads 158,661
Release v3.0.7
Language: C# Updated: 2026-09-19

API Reference

Cmdlet

Get-OfficeIWork

Namespace PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.IWork.IWorkSourceDocument

Reads a modern Apple Pages, Numbers, or Keynote package without launching iWork.

Remarks

Reads a modern Apple Pages, Numbers, or Keynote package without launching iWork.

Examples

Authored help example

Inspect an iWork source before deciding how to convert it.

PS>


$source = Get-OfficeIWork -Path .\Quarterly.numbers
            $source | Select-Object Kind, ContainerKind, BuildVersions
            $source.ReadNumbers().Sheets | Select-Object Name
        

Returns OfficeIMO's bounded, loss-aware source model.

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

Get-OfficeIWork [-Kind <Pages|Numbers|Keynote>] [-Options <IWorkReadOptions>] -Path <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Kind IWorkDocumentKind optionalposition: namedpipeline: Falsevalues: 3
Optional expected application kind; a mismatch is rejected.
Possible values: Pages, Numbers, Keynote
Options IWorkReadOptions optionalposition: namedpipeline: False
Bounded OfficeIMO iWork read options.
Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePath
Path to a modern Pages, Numbers, or Keynote package or directory bundle.

Outputs

OfficeIMO.IWork.IWorkSourceDocument