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):
    ...
Parameter Type Description
pin_x float Specifies the x-coordinate of the text’s pin (center of rotation) in relation to the page.
pin_y float Specifies the y-coordinate of the text’s pin (center of rotation) in relation to the page.
width float
height float
text str text 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):
    ...
Parameter Type Description
pin_x float Specifies the x-coordinate of the text’s pin (center of rotation) in relation to the page.
pin_y float Specifies the y-coordinate of the text’s pin (center of rotation) in relation to the page.
width float Specifies the width of the text.
height float Specifies the height of the text.
text str text string.
font_name str text font name.
font_color str text font color.
size float text font size.

See Also