python-mapnik icon indicating copy to clipboard operation
python-mapnik copied to clipboard

Fix AttributeError in geospatial PDF header

Open craigds opened this issue 4 years ago • 0 comments

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 avatar Sep 01 '21 22:09 craigds