You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has nothing to do with PyMuPDF itself, but with this package.
For this package, you did not mention a version number.
Your finding looks like a know bug in v0.0.17. Please try the version 0.0.16 instead.
delparms.img_rects[i] # do not touch this image twice
The problem is that if you remove an element of the list, which means the index has been changed, if we have a list of [1, 2, 3, 4, 5], in the first iteration i = 0 we remove the first element of the list, that will results us in the following list [2, 3, 4, 5], but with enumerate it will goes to the element 3 and skip 2 because the next index is i = 1. Instead of processing the 5 elements it will process only 3 elements
Description of the bug
test_with_images (5).pdf
For example, this pdf with multiple images per page, using
we get only 3 images, also, the last image per page.
How to reproduce the bug
Check the output folder.
PyMuPDF version
1.24.13
Operating system
MacOS
Python version
3.12
The text was updated successfully, but these errors were encountered: