From 9161ef3822bf4c27e97bd7ec7c0345778fe9b1ae Mon Sep 17 00:00:00 2001 From: Evgeni Petrov Date: Fri, 23 Oct 2020 09:32:27 +0300 Subject: [PATCH] Update docs for process_color_background --- docs/user/advanced.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index b482022..e1ef329 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -33,6 +33,19 @@ To process background lines, you can pass ``process_background=True``. .. csv-table:: :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 `. + :: + + $ camelot lattice -back -color background_lines.pdf + Visual debugging ----------------