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.EpubWriteReport

Saves a native EPUB publication, rejecting loss unless explicitly allowed.

Syntax

Save-OfficeEpub
[-AllowLoss]
-Document <EpubPublication>
[-GrayscaleImages]
[-MaxOutputBytes <Int64>]
[-PassThru]
[[-Path] <String>]
[-ReaderProfile <Standard|Kobo|SendToKindle|EInkCompact|EInkLarge>]
[-RemoveInvalidatedSignatures]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: Document

Description

Save replaces its destination after validation. PassThru returns the native write report.

Use -WhatIf to preview writing the EPUB or -Confirm to prompt before writing.

Examples

Save a live publication to its associated path and inspect the report.

$report = $book | Save-OfficeEpub -PassThru

Parameters

-AllowLoss SwitchParameter optional
Permit reductions reported by the package writer.
-Document EpubPublication requiredpipeline: True (ByValue)
Live editable publication.
-GrayscaleImages SwitchParameter optional
Convert supported raster pixels to grayscale with an e-ink EPUB profile.
-MaxOutputBytes Int64 optional
Maximum compressed output size.
-PassThru SwitchParameter optional
Return the native write report.
-Path String optionalposition: 0
Destination path; omission uses the native publication's associated path.
-ReaderProfile EpubReaderProfile optional
Reader profile for EPUB output. Kobo requires a .kepub.epub path.
Possible values: Standard, Kobo, SendToKindle, EInkCompact, EInkLarge
-RemoveInvalidatedSignatures SwitchParameter optional
Explicitly remove signatures invalidated by edits. Reported loss still requires AllowLoss.
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
Prompts for confirmation before running the command.

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.