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

Commit bd4a393

Browse files
committed
Update docstrings, add backands and fallback
1 parent ae891d8 commit bd4a393

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

camelot/io.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def read_pdf(
104104
105105
For more information, refer `OpenCV's dilate
106106
<https://docs.opencv.org/2.4/modules/imgproc/doc/filtering.html#dilate>`_.
107+
backend* : str, optional by default "pdfium"
108+
The backend to use for converting the PDF to an image so it can be processed by OpenCV.
109+
use_fallback* : bool, optional
110+
Fallback to another backend if unavailable, by default True
107111
resolution* : int, optional (default: 300)
108112
Resolution used for PDF to PNG conversion.
109113

camelot/parsers/lattice.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class Lattice(BaseParser):
7575
Number of times for erosion/dilation is applied.
7676
7777
For more information, refer `OpenCV's dilate <https://docs.opencv.org/2.4/modules/imgproc/doc/filtering.html#dilate>`_.
78+
backend* : str, optional by default "pdfium"
79+
The backend to use for converting the PDF to an image so it can be processed by OpenCV.
80+
use_fallback* : bool, optional
81+
Fallback to another backend if unavailable, by default True
7882
resolution : int, optional (default: 300)
7983
Resolution used for PDF to PNG conversion.
8084

0 commit comments

Comments
 (0)