More logs
parent
bc86346154
commit
3eb18ef199
|
|
@ -212,7 +212,7 @@ class Lattice:
|
||||||
ltchar = get_text_objects(layout, ltype="char")
|
ltchar = get_text_objects(layout, ltype="char")
|
||||||
width, height = dim
|
width, height = dim
|
||||||
bname, __ = os.path.splitext(pdfname)
|
bname, __ = os.path.splitext(pdfname)
|
||||||
logger.info('Parsing tables from {0}.'.format(bname))
|
logger.info('Parsing tables from {0}.'.format(os.path.basename(bname)))
|
||||||
if not ltchar:
|
if not ltchar:
|
||||||
logger.warning("{0}: PDF has no text. It may be an image.".format(
|
logger.warning("{0}: PDF has no text. It may be an image.".format(
|
||||||
os.path.basename(bname)))
|
os.path.basename(bname)))
|
||||||
|
|
|
||||||
|
|
@ -301,7 +301,7 @@ class Stream:
|
||||||
ltchar = get_text_objects(layout, ltype="char")
|
ltchar = get_text_objects(layout, ltype="char")
|
||||||
width, height = dim
|
width, height = dim
|
||||||
bname, __ = os.path.splitext(pdfname)
|
bname, __ = os.path.splitext(pdfname)
|
||||||
logger.info('Parsing tables from {0}'.format(bname))
|
logger.info('Parsing tables from {0}.'.format(os.path.basename(bname)))
|
||||||
if not lttextlh:
|
if not lttextlh:
|
||||||
logger.warning("{0}: PDF has no text. It may be an image.".format(
|
logger.warning("{0}: PDF has no text. It may be an image.".format(
|
||||||
os.path.basename(bname)))
|
os.path.basename(bname)))
|
||||||
|
|
|
||||||
|
|
@ -370,6 +370,8 @@ if __name__ == '__main__':
|
||||||
else:
|
else:
|
||||||
p.append({'start': int(r), 'end': int(r)})
|
p.append({'start': int(r), 'end': int(r)})
|
||||||
|
|
||||||
|
logger.info('Applying {0} method on {1}'.format(args['<method>'],
|
||||||
|
os.path.basename(filename)))
|
||||||
margins = (float(args['--cmargin']), float(args['--lmargin']),
|
margins = (float(args['--cmargin']), float(args['--lmargin']),
|
||||||
float(args['--wmargin']))
|
float(args['--wmargin']))
|
||||||
if args['<method>'] == 'lattice':
|
if args['<method>'] == 'lattice':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue