odoo pdf digital signature problem

odoo pdf digital signature problem 

When using PyMuPDF for digital signature, the program that ran well on 15 before, did not record the PyMuPDF version when upgrading to 16, and an error occurred. Page has no insertImage attribute, and several versions have been changed, such as 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, and the latest version 1.21.1 still does not work

page.insertImage((450, qzwz, 450+tk/xfxs, qzwz+th/xfxs), tempf)
pip install PyMuPDF==1.21.1

Finally, with the latest version, check

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

Guess you like

Origin blog.csdn.net/fqfq123456/article/details/130056241