paper-docxAPI referenceopc.oxml
CT_Override
paper-docx 0.2.0 API reference
<Override> element, specifying the content type to be applied for a part with
the specified partname.
Attributes
content_type
attributecontent_typeString held in the ContentType attribute of this <Override>
element.
partname
attributepartnameString held in the PartName attribute of this <Override> element.
xml
attributexmlstrReturn XML string for this element, suitable for testing purposes.
Pretty printed for readability and without an XML declaration at the top.
Functions
new
funcnew(partname, content_type)Return a new <Override> element with attributes set to parameter values.
parampartnameparamcontent_type