Skip to content
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

PdfReader - incorrect startxref pointer(1) #2250

Closed
jack-fleenor opened this issue Oct 9, 2023 · 6 comments
Closed

PdfReader - incorrect startxref pointer(1) #2250

jack-fleenor opened this issue Oct 9, 2023 · 6 comments

Comments

@jack-fleenor
Copy link

Issue with running PdfReader while attempting to reformat a textbook from my college class, attempted solution from this previous issue. #36

[Running]  /usr/bin/env python3 "app/utils/script.py"
incorrect startxref pointer(1)

Environment

$ python3 -m platform
macOS-14.0-arm64-arm-64bit

$ python3 -c "import pypdf;print(pypdf._debug_versions)"
pypdf==3.16.3, crypt_provider=('cryptography', '38.0.3'), PIL=9.2.0

Code + PDF

import pypdf
TEST_FILE = './test/book.pdf'
reader = pypdf.PdfReader(TEST_FILE)

book.pdf

@pubpub-zz
Copy link
Collaborator

Your pdf is damaged but can still be read at least partially. The message is just a warning and does prevent working on it

@MartinThoma
Copy link
Member

@jack-fleenor Please read https://pypdf2.readthedocs.io/en/3.0.0/user/suppress-warnings.html

I'm closing this as everything is going as expected.

@MartinThoma
Copy link
Member

@pubpub-zz Many beginners seem to stumble over this. I've seen that other libraries include links within error messages / warnings. What do you think about us adding a link to such messages?

@MartinThoma
Copy link
Member

Might be interesting for others as well. Let's discuss this in #2252 :-)

@rana-dev-py
Copy link

why this error crash memory?

@stefan6419846
Copy link
Collaborator

@rana-dev-py Please open a new dedicated issue with a detailed report filling out all the necessary fields of your problem. As is, it is nearly impossible for us to understand your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants