Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeEpubResource

Aliases: EpubResource
Module
PSWriteOffice
Aliases
EpubResource
Inputs
OfficeIMO.Epub.EpubPublication
Outputs
OfficeIMO.Epub.EpubManifestItem

Adds an image, font, stylesheet or media payload without executing it.

Syntax

Add-OfficeEpubResource
[-ContainerPath <String>]
[-Document <EpubPublication>]
-Id <String>
[-MaxInputBytes <Int64>]
-MediaType <String>
[-PassThru]
[-Path] <String>
[<CommonParameters>]
#
Parameter set: Default

Examples

Adds an image, font, stylesheet or media payload without executing it.

$book | Add-OfficeEpubResource -Path ./cover.png -Id cover -MediaType image/png

Parameters

-ContainerPath String optional
Optional package-relative path; omission uses EPUB/assets and the source filename.
-Document EpubPublication optionalpipeline: True (ByValue)
Gets or sets an explicit live document; omission uses the enclosing content block.
-Id String required
Unique manifest identifier.
-MaxInputBytes Int64 optional
Maximum input payload bytes.
-MediaType String required
Explicit MIME type.
-PassThru SwitchParameter optional
Return the created or changed object.
-Path String requiredposition: 0
Literal payload path.

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.