Paper Office
paper-pptxAPI referenceoxml.simpletypes

ST_TextBulletSizePercent

paper-pptx 0.2.0 API reference

Valid values for a:buSzPct/@val, as a fraction of the text size (e.g. 0.75 for 75%).

Reads both wire forms found in real files: thousandths-of-a-percent integers ("75000", ECMA-376:2006 form) and percent strings ("75%"). Writes the percent-string form, which both current schema editions bless — their pattern admits WHOLE percents only (25%–400%), so fractional percents like 0.755 are rejected at validation.

Functions

convert_from_xml

funcconvert_from_xml(str_value)

Read a bullet size as a fraction, accepting the percent-string and thousandths-of-a- percent forms.

paramstr_value

convert_to_xml

funcconvert_to_xml(value)

Write a bullet size fraction as a percent string.

paramvalue

from_xml

funcfrom_xml(xml_value: str) -> Any
paramxml_valuestr

Returns

typing.Any

to_xml

functo_xml(value: Any) -> str
paramvalueAny

Returns

str

validate

funcvalidate(value)

Refuse a bullet size outside 0.25..4.0, or one finer than a whole percent.

paramvalue

validate_float

funcvalidate_float(value: Any)

Note that int values are accepted.

paramvalueAny

validate_float_in_range

funcvalidate_float_in_range(value, min_inclusive, max_inclusive)
paramvalue
parammin_inclusive
parammax_inclusive

validate_int

funcvalidate_int(value)
paramvalue

validate_int_in_range

funcvalidate_int_in_range(value, min_inclusive, max_inclusive)
paramvalue
parammin_inclusive
parammax_inclusive

validate_string

funcvalidate_string(value)
paramvalue

On this page