Appearance
@shbernal/ts-pptx / index / PackagePart
Interface: PackagePart
Defined in: src/types/pres.ts:54
One emitted OOXML package part: its full slash-path and already-encoded bytes. Returned by TsPptx.toParts for callers that want the raw parts of the .pptx OPC package without zipping (custom containers, streaming, part-level inspection). The bytes are byte-identical to what write() would compress for the same part; XML parts are UTF-8 (decode with new TextDecoder().decode(part.data)), media/font parts are their raw binary.
Properties
data
readonlydata:Uint8Array
Defined in: src/types/pres.ts:58
The part's already-encoded bytes: a fresh view per call, safe to keep or transfer.
path
readonlypath:string
Defined in: src/types/pres.ts:56
Full OOXML package part path, e.g. ppt/slides/slide1.xml.