paper-docxAPI referenceopc.pkgwriter
PackageWriter
paper-docx 0.2.0 API reference
Writes a zip-format OPC package to pkg_file, where pkg_file can be either a
path to a zip file (a string) or a file-like object.
Its single API method, :meth:write, is static, so this class is not intended to be
instantiated.
Functions
write
funcwrite(pkg_file, pkg_rels, parts)Write parts and pkg_rels to pkg_file as a .docx package, with a content-types
stream derived from the parts.
parampkg_fileparampkg_relsparamparts