-
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
Getting KeyError: '/Kids' for getNumPages #500
Comments
Analysis:- Now the PDF Version is 1.0(Acrobat 1.x). If I save the same PDF with different name then its version its getting change and its working. |
I realize it's been a long time, but ... Do you happen to have the PDF that causes / caused those issues? Could you share it? |
As too much has changed since this was last encountered and there is no example PDF, I'll close this. If anybody sees this issue again with a recent PyPDF2 version, please let me know! |
I have meet 'KeyError: '/Kids'' error, PyPDF2=='3.0.1', |
Fixes py-pdf#500 these PDF are not compliant with Standard (Type is mandatory in page tree nodes however Acrobat Reader can open them Robustness improved
The PDF is not compliant with the Standard : /Type field is missing on the Pages Nodes and on the Page Objects. However the document can be opened by Acrobat Reader. Page objects are now considered also if /Contents is present (although not or if /Kids is not present |
/Type is mandatory in page tree nodes according to the the PDF specification. Hence dealing with such files is a robustness improvements. Acrobat Reader can open such PDF documents as well. Fixes #500
I've just merged the fix by @pubpub-zz (thank you again 🤗 ) The fix will be part of pypdf > 3.8.1. |
@MartinThoma I am having this /Kids Type error in my pdf file, I tried to create a new pdf file based on Page number after updating some attributes, If I create individually it is working fine. But When I tried to combine multiple page at once, the Attributes are not updating. |
@pachhaipurna |
For a specific PDF, its giving error KeyError: '/Kids'
Code
Traceback
Document Info
The text was updated successfully, but these errors were encountered: