paper-pptxAPI referenceoxml.simpletypes
ST_TextLineSpaceReductionPercentOrPercentString
paper-pptx 0.2.0 API reference
Valid values for a:normAutofit/@lnSpcReduction, as a percent float (20.0 = 20%).
Reads both wire forms ("20000" thousandths and "20%"), mirroring the fontScale
attribute's simpletype, and writes the thousandths form PowerPoint writes.
Functions
convert_from_xml
funcconvert_from_xml(str_value)Read a line-space reduction as a percent, accepting the percent-string and thousandths forms.
paramstr_valueconvert_to_xml
funcconvert_to_xml(value)Write a line-space reduction percent in thousandths.
paramvaluefrom_xml
funcfrom_xml(xml_value: str) -> Anyparamxml_valuestrReturns
typing.Anyto_xml
functo_xml(value: Any) -> strparamvalueAnyReturns
strvalidate
funcvalidate(value)Refuse a line-space reduction outside 0.0..100.0 percent.
paramvaluevalidate_float
funcvalidate_float(value: Any)Note that int values are accepted.
paramvalueAnyvalidate_float_in_range
funcvalidate_float_in_range(value, min_inclusive, max_inclusive)paramvalueparammin_inclusiveparammax_inclusivevalidate_int
funcvalidate_int(value)paramvaluevalidate_int_in_range
funcvalidate_int_in_range(value, min_inclusive, max_inclusive)paramvalueparammin_inclusiveparammax_inclusivevalidate_string
funcvalidate_string(value)paramvalue