Код: Выделить всё
from win32com import client
xlApp = client.Dispatch("Excel.Application")
workbook = xlApp.Workbooks.Open('test.xlsx')
worksheet = workbook.Worksheets[0]
worksheet.insert_image('F4','logo.png')
worksheet.Visible = 1
worksheet.ExportAsFixedFormat(0, 'D:\\Python\\whatever\\test.pdf')
workbook.close()
Исключение «unhandled AttributeError» неизвестно.insert_image
Подробнее здесь: https://stackoverflow.com/questions/446 ... sert-image