-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some images in pdf can not be removed using 'remove_images()' #2103
Comments
the images are in a XObject/Form within an XObject/Form |
Some images could not be removed using remove_images. There is only one page in the pdf and the output of 'len(page.images)' was 32, even after 'remove_images()'. The reason was that images are in a XObject/Form within an XObject/Form. This commit modifies the code to cope with such situations for all remove_xxx functions. Closes #2103
The bugfix by @pubpub-zz was just merged and will be released on 3rd of September in |
@animebing Thank you for reporting the issue 🙏 If you want, I can add you to https://pypdf.readthedocs.io/en/latest/meta/CONTRIBUTORS.html |
@MartinThoma Thanks for solving the problem. |
Some images in pdf can not be removed using the method metioned here. There is only one page in the pdf and the output of 'len(page.images)' is 32, When I do 'remove_images()', they are still in the new created pdf.
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
2210.03142-1.pdf
The text was updated successfully, but these errors were encountered: