How to properly insert an image in PDF with PyMuPDF 1.22.*? #3497
-
Hello!
Then I used the guide from PyMuPDF insert image at bottom:
Firstly, there's no
Do you have any ideas what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The image insert method is insert_image. |
Beta Was this translation helpful? Give feedback.
The image insert method is insert_image.
You normally do not need to convert the binary data output
imgdata
from base64 via PIL first. That is to say, all image formats complying with https://pymupdf.readthedocs.io/en/latest/pixmap.html#supported-input-image-formats can be used directly as values for parameterstream
.