camelot-dev / camelot

A Python library to extract tabular data from PDFs
https://camelot-py.readthedocs.io
MIT License
2.95k stars 465 forks source link

CLI: Margins option not processed #499

Open Niremizov opened 3 months ago

Niremizov commented 3 months ago

Describe the bug -M --margins options is not processed when using CLI.

Steps to reproduce the bug

1) Example CLI command:

camelot --split_text --margins 1.5 0.5 0.8 --format html --output /tmp/1453949390-0823722001717578612/extract.txt --pages all stream -e 500 -r 8 [filePath]

Result: Margins not processed and not passed to read_pdf() function.

Expected behavior

Margins options would be passed to read_pdf() layout_kwargs - argument.

Environment