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
Traceback (most recent call last):
File "pdf-watermark-removal.py", line 127, in <module>
main()
File "pdf-watermark-removal.py", line 117, in main
process_page(pdf, i, i < args.skip)
File "pdf-watermark-removal.py", line 66, in process_page
content = pdf.getPage(page_index)['/Resources']['/XObject'].getObject()
File "/home/math/.pyenv/versions/3.8.4/lib/python3.8/site-packages/PyPDF2/generic.py", line 516, in __getitem__
return dict.__getitem__(self, key).getObject()
KeyError: '/XObject'
I recommend to use pdfminer.six instead of PyPDF2, because pdfminser.six is maintained and PyPDF2 isn't.
The text was updated successfully, but these errors were encountered:
I recommend to use pdfminer.six instead of PyPDF2, because pdfminser.six is maintained and PyPDF2 isn't.
The text was updated successfully, but these errors were encountered: