paper-docxAPI referenceopc.oxml
CT_Types
paper-docx 0.2.0 API reference
<Types> element, the container element for Default and Override elements in
[Content_Types].xml.
Attributes
defaults
attributedefaultsoverrides
attributeoverridesxml
attributexmlstrReturn XML string for this element, suitable for testing purposes.
Pretty printed for readability and without an XML declaration at the top.
Functions
add_default
funcadd_default(ext, content_type)Add a child <Default> element with attributes set to parameter values.
paramextparamcontent_typeadd_override
funcadd_override(partname, content_type)Add a child <Override> element with attributes set to parameter
values.
parampartnameparamcontent_typenew
funcnew()Return a new <Types> element.