mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
157 stars 90 forks source link

Fix AttributeError in geospatial PDF header #247

Closed craigds closed 10 months ago

craigds commented 2 years ago

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 commented 10 months ago

looks like this has been fixed in 0697787e1a0d533633a75da54ea4dfd8eb6fd674