Paper Office
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

attributedefaults

overrides

attributeoverrides

xml

attributexmlstr

Return 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.

paramext
paramcontent_type

add_override

funcadd_override(partname, content_type)

Add a child <Override> element with attributes set to parameter values.

parampartname
paramcontent_type

new

funcnew()

Return a new <Types> element.

On this page