paper-docxAPI referenceopc.oxml
CT_Relationship
paper-docx 0.2.0 API reference
<Relationship> element, representing a single relationship from source to target part.
Attributes
rId
attributerIdString held in the Id attribute of this <Relationship> element.
reltype
attributereltypeString held in the Type attribute of this <Relationship> element.
target_mode
attributetarget_modeString held in the TargetMode attribute of this <Relationship>
element, either Internal or External.
Defaults to Internal.
target_ref
attributetarget_refString held in the Target attribute of this <Relationship>
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(rId: str, reltype: str, target: str, target_mode: str = RTM.INTERNAL)Return a new <Relationship> element.
paramrIdstrparamreltypestrparamtargetstrparamtarget_modestr= RTM.INTERNAL