-
Notifications
You must be signed in to change notification settings - Fork 1.6k
KeyError: '/T' #2078
Copy link
Copy link
Closed
Labels
key-errorCould be a bug, but also a robustness issueCould be a bug, but also a robustness issue
Description
Traceback
This is the complete Traceback I see:
File "main.py", line 247, in process
pdf_writer.append(pdf_reader, [page_num])
File "venv/lib/python3.10/site-packages/pypdf/_writer.py", line 2804, in append
self.merge(
File "venv/lib/python3.10/site-packages/pypdf/_utils.py", line 466, in wrapper
return func(*args, **kwargs)
File "venv/lib/python3.10/site-packages/pypdf/_writer.py", line 3001, in merge
self.add_filtered_articles("", srcpages, reader)
File "venv/lib/python3.10/site-packages/pypdf/_writer.py", line 3088, in add_filtered_articles
thr = a.get_object()["/T"]
File "venv/lib/python3.10/site-packages/pypdf/generic/_data_structures.py", line 320, in __getitem__
return dict.__getitem__(self, key).get_object()
KeyError: '/T'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
key-errorCould be a bug, but also a robustness issueCould be a bug, but also a robustness issue