Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeEpubResource

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

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

Syntax

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

Examples

Authored help example

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.
-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.
-Publication EpubPublication requiredpipeline: True (ByValue)
Live editable publication.

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.