Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit a1e734e

Browse files
Evgeni Petrovbosd
Evgeni Petrov
authored andcommitted
Update docs for process_color_background
1 parent dbb475e commit a1e734e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/user/advanced.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@ To process background lines, you can pass ``process_background=True``.
3535
:file: ../_static/csv/background_lines.csv
3636
:class: full-width
3737

38+
If there's too little contrast between the table background color and the document background color, you can try the option ``process_color_background=True``.
39+
40+
.. code-block:: pycon
41+
42+
>>> tables = camelot.read_pdf('background_lines.pdf', process_background=True, process_color_background=True)
43+
>>> tables[1].df
44+
45+
.. tip::
46+
Here's how you can do the same with the :ref:`command-line interface <cli>`.
47+
::
48+
49+
$ camelot lattice --process_color_background background_lines.pdf
50+
3851
Visual debugging
3952
----------------
4053

0 commit comments

Comments
 (0)