handle error when an object was not found in dumpxml()
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@92 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
c66f2d64e1
commit
43e5c05307
|
@ -85,6 +85,7 @@ def dumpallobjs(out, doc, codec=None):
|
|||
for objid in xref.objids():
|
||||
try:
|
||||
obj = doc.getobj(objid)
|
||||
if obj == None: continue
|
||||
out.write('<object id="%d">\n' % objid)
|
||||
dumpxml(out, obj, codec=codec)
|
||||
out.write('\n</object>\n\n')
|
||||
|
|
Loading…
Reference in New Issue