diff --git a/camelot/stream.py b/camelot/stream.py index 5195ba8..95c99d3 100644 --- a/camelot/stream.py +++ b/camelot/stream.py @@ -377,8 +377,7 @@ class Stream: if ncols == 1 and not self.debug: # no tables detected logger.warning("{}: Only one column was detected, the pdf" - " may have no tables. Specify ncols if" - " the pdf has tables.".format( + " may have no tables.".format( os.path.basename(bname))) cols = [(t.x0, t.x1) for r in rows_grouped if len(r) == ncols for t in r] diff --git a/tools/camelot b/tools/camelot index 563189a..ea9d396 100755 --- a/tools/camelot +++ b/tools/camelot @@ -89,14 +89,13 @@ stream_doc = """ Stream method looks for whitespaces between text to form a table. usage: - camelot stream [-t ...] [-c ...] [-n ...] [-H
...] + camelot stream [-t ...] [-c ...] [-H
...] [-y ...] [-m ...] [options] [--] options: -t, --tarea Specific table areas to analyze. -c, --columns Comma-separated list of column x-coordinates. Example: -c 10.1,20.2,30.3 - -n, --ncols Number of columns. [default: -1] -H, --header
Specify header for each table. -y, --ytol Tolerance to account for when grouping rows together. [default: 2]