Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeEpub

Module PSWriteOffice
Inputs
OfficeIMO.Epub.EpubPublication
Outputs
OfficeIMO.Epub.EpubPublication

Writes a validated EPUB package with explicit conflict and loss policies.

Syntax

Save-OfficeEpub [-AllowLoss] [-Force] [-MaxOutputBytes <Int64>] [-PassThru] [-Path] <String> -Publication <EpubPublication> [-RemoveInvalidatedSignatures] [-ReportVariable <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Writes a validated EPUB package with explicit conflict and loss policies.

$book | Save-OfficeEpub -Path ./operations.epub

Parameters

-AllowLoss SwitchParameter optional
Permit reductions reported by the package writer.
-Force SwitchParameter optional
Replace an existing destination.
-MaxOutputBytes Int64 optional
Maximum compressed output size.
-PassThru SwitchParameter optional
Return the created or changed object.
-Path String requiredposition: 0
Destination EPUB path.
-Publication EpubPublication requiredpipeline: True (ByValue)
Live editable publication.
-RemoveInvalidatedSignatures SwitchParameter optional
Explicitly remove signatures invalidated by package edits. Requires AllowLoss if reported as loss.
-ReportVariable String optional
Variable receiving the writer preservation report.

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.