Skip to content

Function: readPptxBinaryPart() ​

readPptxBinaryPart(pptxPackage, path): Promise<Uint8Array<ArrayBufferLike> | null>

Read a package part as raw bytes — the binary sibling of readPptxTextPart for embedded media (SVG/PNG/EMF blobs, fonts, …) that must not be UTF-8 decoded. Returns null when the part is absent. The Uint8Array is browser-isomorphic; Node consumers can wrap it with Buffer.from(...) if they need Buffer methods.

The part's current body, so a package also opened as a Presentation and edited reads back with its edits.

Parameters ​

ParameterType
pptxPackageOpcPackage
pathstring

Returns ​

Promise<Uint8Array<ArrayBufferLike> | null>