-
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
KeyError: '/T' #2078
Labels
key-error
Could be a bug, but also a robustness issue
Comments
Please provide version, simple code, and PDF. withouth these data we will have to close the issue as non reproductable |
pypdf==3.15.0 def process(self, pdf_reader, pdf_writer):
for page_num, page in enumerate(pdf_reader.pages):
pdf_writer.append(pdf_reader, [page_num]) Unforunately PDF cannot be shared, it is private. |
Ok, actually there is a lot of such files, this one can be shared: import pypdf
pdf = pypdf.PdfReader('bad.pdf')
w = pypdf.PdfWriter()
for n in range(len(pdf.pages)):
w.append(pdf, [n]) |
pubpub-zz
added a commit
to pubpub-zz/pypdf
that referenced
this issue
Aug 10, 2023
closes py-pdf#2078 /T is optional
This PR should be good |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback
This is the complete Traceback I see:
The text was updated successfully, but these errors were encountered: