Closed viking closed 3 years ago
Actually, this isn't just happening for empty dictionaries. It happens whenever using CanvasIterator.
Converting the images dictionary to a list throws away the dictionary values and only keeps the keys.
@viking fixed on master. Feel free submitting PRs next time :-)
See https://github.com/maxpmaxp/pdfreader/blob/42444158babe3dc474412c4c8639a875b1f4effe/pdfreader/viewer/canvas.py#L44
If images is an empty dictionary, it gets converted to an empty list.