add_link method

add_link

Adds an attachment by a link (the document will not contain attached file content).

def add_link(self, source_full_name, preview_image_content, x, y, width, height):
    ...
Parameter Type Description
source_full_name str The linked file path.
preview_image_content bytes The attached file preview image as a byte array.
x float The x-coordinate of the attachment frame (in points).
y float The y-coordinate of the attachment frame (in points).
width float The width of the attachment frame in points.
height float The height of the attachment frame in points.

See Also