add_text method

add_text(pin_x, pin_y, width, height, text)

Adds Text with defined PinX and PinY.

Returns

Returns a shape object that represents the new text object.

def add_text(self, pin_x, pin_y, width, height, text):
    ...
ParameterTypeDescription
pin_xfloatSpecifies the x-coordinate of the text’s pin (center of rotation) in relation to the page.
pin_yfloatSpecifies the y-coordinate of the text’s pin (center of rotation) in relation to the page.
widthfloat
heightfloat
textstrtext string.

add_text(pin_x, pin_y, width, height, text, font_name, font_color, size)

Adds Text with defined PinX and PinY.

Returns

Returns a shape object that represents the new text object.

def add_text(self, pin_x, pin_y, width, height, text, font_name, font_color, size):
    ...
ParameterTypeDescription
pin_xfloatSpecifies the x-coordinate of the text’s pin (center of rotation) in relation to the page.
pin_yfloatSpecifies the y-coordinate of the text’s pin (center of rotation) in relation to the page.
widthfloatSpecifies the width of the text.
heightfloatSpecifies the height of the text.
textstrtext string.
font_namestrtext font name.
font_colorstrtext font color.
sizefloattext font size.

See Also