-
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
Page merge: 'NullObject' object has no attribute 'get_data' #2157
Comments
pubpub-zz
added a commit
to pubpub-zz/pypdf
that referenced
this issue
Sep 6, 2023
@stefan6419846 |
I can confirm that the PR seems to indeed avoid this issue and generates a correctly watermarked PDF file. |
I've re-opened it as I want to improve the test |
stefan6419846
added a commit
to stefan6419846/pypdf
that referenced
this issue
Mar 16, 2024
pubpub-zz
pushed a commit
that referenced
this issue
Mar 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Applying the fix from #2150 on the existing code and using a PDF where
remove_text()
andremove_images()
have been called on raises an error.Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
The watermark is https://github.com/py-pdf/pypdf/files/12428857/watermark.pdf, the cleaned file abc.pdf
Traceback
This is the complete traceback I see:
The text was updated successfully, but these errors were encountered: