Closed pablobarria closed 5 years ago
tables=camelot.read_pdf('file.pdf',flavor='stream',table_areas=["0,560,608,40"],columns=["0,45,75,100,290,445"])
With this syntax, it works. Both table_areas and columns must be defined as lists of strings, with the same length.
...the one thing I didn't try. Thanks!
@anakin87 Thanks for pointing it out!
With the command line interface I can do the following:
camelot -f json -o "file.json" stream -T 0,560,608,40 -r 10 -C 0,45,75,100,290,445 "file.pdf"
Yet when I try to pass both
table_areas
andcolumns
kwargs to camelot.read_pdf with the stream flavor it fails with the error:No matter the amount of columns I input.
Is this a bug or am I doing something wrong? I tried to do it with
table_regions
as well, but that seems to not work with Stream at all (haven't tried with Lattice).I'm using Python 3.6.5 on MacOS Mojave