set_embedded_object method

set_embedded_object

Sets embedded object data.

def set_embedded_object(self, link_to_file, object_data, source_file_name, display_as_icon, label):
    ...
ParameterTypeDescription
link_to_fileboolIndicates whether the object links to the file. If true, the parameter objectData is ignored.
object_databytesThe embedded object data.
source_file_namestrThe file name.
display_as_iconboolIndicates whether diplaying object as an icon.
If true, the orginal image data will be covered by icon.
labelstrThe icon label. Only works when displayAsIcon as true.

set_embedded_object

Sets embedded object data.

def set_embedded_object(self, link_to_file, object_data, source_file_name, display_as_icon, label, update_icon):
    ...
ParameterTypeDescription
link_to_fileboolIndicates whether the object links to the file. If true, the parameter objectData is ignored.
object_databytesThe embedded object data.
source_file_namestrThe file name.
display_as_iconboolIndicates whether diplaying object as an icon.
If true, the orginal image data will be covered by icon.
labelstrThe icon label. Only works when displayAsIcon as true.
update_iconboolIndicates whether automatically updating icon.

Remarks

As Aspose can update embedd all file icons, so it’s better that you can add correct icon with update_icon as false.

See Also