Update docs for process_color_background

pull/203/head
Evgeni Petrov 2020-10-23 09:32:27 +03:00
parent 2ebd6073c0
commit 9161ef3822
1 changed files with 13 additions and 0 deletions

View File

@ -33,6 +33,19 @@ To process background lines, you can pass ``process_background=True``.
.. csv-table:: .. csv-table::
:file: ../_static/csv/background_lines.csv :file: ../_static/csv/background_lines.csv
If there's too little contrast between the table background color and the document background color, you can try combining the experimental option ``process_color_background=True``.
::
>>> tables = camelot.read_pdf('background_lines.pdf', process_background=True, process_color_background=True)
>>> tables[1].df
.. tip::
Here's how you can do the same with the :ref:`command-line interface <cli>`.
::
$ camelot lattice -back -color background_lines.pdf
Visual debugging Visual debugging
---------------- ----------------