odoo pdf 数字签名问题
在使用PyMuPDF进行数字签名时,以前在15上运行好的程序,升级16时没记录PyMuPDF版本,出现错误,Page没有insertImage属性,换了几个版本,如1.18.14,1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19 .5, 1.19.6, 1.20.0, 1.20.1, 1.20.2,及最新版本1.21.1还是不行
page.insertImage((450, qzwz, 450+tk/xfxs, qzwz+th/xfxs), tempf)
pip install PyMuPDF==1.21.1
最后用最新版本,查了下
insert_image(rect, filename=None, pixmap=None, stream=None, mask=None, rotate=0, alpha=-1, oc=0, xref=0, keep_proportion=True, overlay=True)
PDF only: Put an image inside the given rectangle. The image may already exist in the PDF or be taken from a pixmap, a file, or a memory area.
Changed in v