Poppler.TextSpan

Fields

None

Methods

copy ()

free ()

get_color ()

get_font_name ()

get_text ()

is_bold_font ()

is_fixed_width_font ()

is_serif_font ()

Details

class Poppler.TextSpan
copy()
Returns:

A new Poppler.TextSpan

Return type:

Poppler.TextSpan

Makes a copy of a text span.

New in version 0.26.

free()

Frees a text span.

New in version 0.26.

get_color()
Returns:

a return location for a Poppler.Color

Return type:

color: Poppler.Color

Obtains the color in which the text is to be rendered.

New in version 0.26.

get_font_name()
Returns:

A string containing the font name, or None if a font is not defined.

Return type:

str

Obtains the name of the font in which the span is to be rendered.

New in version 0.26.

get_text()
Returns:

A string.

Return type:

str

Obtains the text contained in the span.

New in version 0.26.

is_bold_font()
Returns:

Whether the span uses bold font.

Return type:

bool

Check whether a text span is meant to be rendered using a bold font.

New in version 0.26.

is_fixed_width_font()
Returns:

Whether the span uses a fixed-width font.

Return type:

bool

Check wether a text span is meant to be rendered using a fixed-width font.

New in version 0.26.

is_serif_font()
Returns:

Whether the span uses a serif font.

Return type:

bool

Check whether a text span is meant to be rendered using a serif font.

New in version 0.26.