Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Open-OfficeIWork

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

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

Syntax

Open-OfficeIWork
[-Kind <Pages|Numbers|Keynote>]
[-Options <IWorkLoadOptions>]
[-Path] <String>
[<CommonParameters>]
#
Parameter set: Path
Open-OfficeIWork
[-Kind <Pages|Numbers|Keynote>]
-LiteralPath <String>
[-Options <IWorkLoadOptions>]
[<CommonParameters>]
#
Parameter set: LiteralPath

Description

Reads supported iWork packages, including the qualified iWork '09 XML profile, into OfficeIMO's bounded source model.

Examples

Inspect an iWork source before deciding how to convert it.

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

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

Parameters

-Kind IWorkDocumentKind optional
Optional expected application kind; a mismatch is rejected.
Possible values: Pages, Numbers, Keynote
-Options IWorkLoadOptions optional
Bounded OfficeIMO iWork read options.
-Path String requiredposition: 0pipeline: True (ByValue)sets: Path
Path to a supported Pages, Numbers, or Keynote package or directory bundle, including the qualified iWork '09 XML profile.
-LiteralPath String requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Exact input path without wildcard expansion.

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.