Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeEpubChapter

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

Adds chapter content, reading order and a navigation entry.

Syntax

Add-OfficeEpubChapter [-ContainerPath <String>] [-Id <String>] [-PassThru] -Publication <EpubPublication> -Text <String> [-Title] <String> [<CommonParameters>]
#
Parameter set: Text
Add-OfficeEpubChapter [-ContainerPath <String>] [-Id <String>] [-PassThru] -Publication <EpubPublication> [-Title] <String> -Xhtml <String> [<CommonParameters>]
#
Parameter set: Xhtml
Add-OfficeEpubChapter [-ContainerPath <String>] [-Id <String>] -Markdown <String> [-PassThru] -Publication <EpubPublication> [-Title] <String> [<CommonParameters>]
#
Parameter set: Markdown

Examples

Authored help example

Adds chapter content, reading order and a navigation entry.

$book | Add-OfficeEpubChapter -Title Opening -Text "Welcome to this handbook."

Parameters

-ContainerPath String optional
Optional package-relative XHTML path.
-Id String optional
Optional stable manifest identifier; omission chooses an unused chapter number.
-PassThru SwitchParameter optional
Return the created or changed object.
-Publication EpubPublication requiredpipeline: True (ByValue)
Live editable publication.
-Text String requiredsets: Text
Plain text, escaped into XHTML paragraphs.
-Title String requiredposition: 0
Chapter title.
-Xhtml String requiredsets: Xhtml
Well-formed XHTML body fragment.
-Markdown String requiredsets: Markdown
Markdown rendered by the existing Markdown engine. Unsupported raw HTML remains subject to EPUB validation.

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.