Cmdlet
Save-OfficeEpub
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:
DocumentDescription
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 -PassThruParameters
- -AllowLoss SwitchParameter
- Permit reductions reported by the package writer.
- -Document EpubPublication
- Live editable publication.
- -GrayscaleImages SwitchParameter
- Convert supported raster pixels to grayscale with an e-ink EPUB profile.
- -MaxOutputBytes Int64
- Maximum compressed output size.
- -PassThru SwitchParameter
- Return the native write report.
- -Path String
- Destination path; omission uses the native publication's associated path.
- -ReaderProfile EpubReaderProfile
- Reader profile for EPUB output. Kobo requires a .kepub.epub path.
- Possible values:
Standard,Kobo,SendToKindle,EInkCompact,EInkLarge - -RemoveInvalidatedSignatures SwitchParameter
- Explicitly remove signatures invalidated by edits. Reported loss still requires AllowLoss.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- 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.