Fix KeyError 'has_vector'

This commit is contained in:
James R. Barlow
2018-10-20 01:20:22 -07:00
parent c5ad530bbf
commit eb4938a36f
+1
View File
@@ -595,6 +595,7 @@ def _pdf_get_pageinfo(pdf, pageno: int, infile, xmltext):
_find_images(pdf=pdf, container=page,
shorthand=userunit_shorthand)]
pageinfo['has_vector'] = False
if any(isinstance(im, VectorInfo) for im in pageinfo['images']):
pageinfo['has_vector'] = True