paper-pptxAPI referenceopc.serialized
PackageWriter
paper-pptx 0.2.0 API reference
Writes a zip-format OPC package to pkg_file.
pkg_file can be either a path to a zip file (a string) or a file-like object. pkg_rels is
the _Relationships object containing relationships for the package. parts is a sequence of
Part subtype instance to be written to the package.
Its single API classmethod is :meth:write. This class is not intended to be instantiated.
PackageWriter(pkg_file: str | IO[bytes], pkg_rels: _Relationships, parts: Sequence[Part])Functions
write
funcwrite(pkg_file: str | IO[bytes], pkg_rels: _Relationships, parts: Sequence[Part]) -> NoneWrite a physical package (.pptx file) to pkg_file.
The serialized package contains pkg_rels and parts, a content-types stream based on
the content type of each part, and a .rels file for each part that has relationships.
parampkg_filestr | IO[bytes]parampkg_rels_RelationshipsparampartsSequence[Part]Returns
None