odoo pdf 数字签名问题

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(rectfilename=Nonepixmap=Nonestream=Nonemask=Nonerotate=0alpha=-1oc=0xref=0keep_proportion=Trueoverlay=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

猜你喜欢

转载自blog.csdn.net/fqfq123456/article/details/130056241
今日推荐