-
Notifications
You must be signed in to change notification settings - Fork 98
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
'NoneType' object has no attribute 'get' in _mkannotation #42
Comments
@Chris-mik this looks like a partly malformed PDF -- there's an entry in the page's |
Tentative fix for issue #42 Also: * use PSLiteral in ANNOT_SUBTYPES rather than hashing the same name strings * improve typing of _mkannotation, and placate mypy
@Chris-mik, I hope the above-referenced commit fixed this crash, but would still appreciate if you could confirm that, and even better if you could share a PDF that demonstrates the issue. In the meantime, I'll close this. |
I have downloaded the folder including your last update, run an extraction from a pdf and I get back the following errors:
The call function used is: python3 pdfannots.py "file_2017.pdf" -o notes.md --print-filename -p
The md output is blank.
Originally posted by @Chris-mik in #41 (comment)
The text was updated successfully, but these errors were encountered: