-
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
ValueError when running PdfReader.outline #1832
Comments
@CactusJackFX |
I'm currently using version 3.8.1. I just upgraded to that one from version 3.4.0, and I'm still getting the same error. I will work on getting approval to send you one of the two documents that I have that are currently getting that error message. |
I cannot come to any conclusion without the pdf |
I run into this same problem. check this pdf please: https://github.com/xrkk/tmpppppp/tree/main PyPDF2 version:3.0.1 |
please upgrade to pypdf and to latest update. PyPDF2 is depreciated. |
I get the same error message on pypdf version 3.8.1 using the sample PDF that xrkk provided. PDF Splitter Version: 1.2.3 last changed on: 05/15/2023 using PyPDF version 3.8.1. not enough values to unpack (expected 3, got 2) With that sample file, this issue should be re-opened. |
I've found the issue : the last parameter (zoom) in XYZ destination is optional. The code forgot that. a PR has been produced |
Thank you @pubpub-zz for taking care of this issue <3 |
The PR was just merged and will be part of pypdf > 3.8.1. I will make the release on Sunday. |
When I go to get the Bookmarks from this PDF I get the following error message:
ValueError: not enough values to unpack (expected 3, got 1)
I have attached a copy of the code on how I opened up the file along with the error and where numbers on where the errors where it's happening. I can't attach a copy of the PDF yet, but I will work on it.
ValueError.txt
The text was updated successfully, but these errors were encountered: