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

Fix AttributeError in geospatial PDF header #247

Closed
wants to merge 1 commit into from

Conversation

craigds
Copy link

@craigds craigds commented Sep 1, 2021

I think when mapnik.printing switched from PyPDF to PyPDF2 it caused
this error:

E AttributeError: 'DictionaryObject' object has no attribute 'has_key'

This change fixes the error. String keys work just fine for these
objects, you don't need to wrap them in NameObject()

I think when mapnik.printing switched from PyPDF to PyPDF2 it caused
this error:

>E  AttributeError: 'DictionaryObject' object has no attribute 'has_key'

This change fixes the error. String keys work just fine for these
objects, you don't need to wrap them in NameObject()
@craigds
Copy link
Author

craigds commented Sep 19, 2023

looks like this has been fixed in 0697787

@craigds craigds closed this Sep 19, 2023
@craigds craigds deleted the fix-printing-has-key branch September 19, 2023 01:29
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

Successfully merging this pull request may close these issues.

1 participant