Skip to content

Commit

Permalink
[tables] CR Changes -> change argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
jstockwin committed Apr 8, 2020
1 parent c71d346 commit ea59c1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions py_pdf_parser/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

def extract_simple_table(
elements: "ElementList",
reference_element: Optional["PDFElement"] = None,
as_text: bool = False,
strip_text: bool = True,
allow_gaps: bool = False,
reference_element: Optional["PDFElement"] = None,
tolerance: float = 0.0,
) -> List[List]:
"""
Expand Down Expand Up @@ -53,16 +53,16 @@ def extract_simple_table(
Args:
elements (ElementList): A list of elements to extract into a table.
reference_element (PDFElement, optional): An element in a full row and a full
column. Will be used to specify the reference row and column. If None, the
top left element will be used, meaning the top row and left column will be
used. If there are gaps in these, you should specify a different reference.
Default: None.
as_text (bool, optional): Whether to extract the text from each element instead
of the PDFElement itself. Default: False.
strip_text (bool, optional): Whether to strip the text for each element of the
table (Only relevant if as_text is True). Default: True.
allow_gaps (bool, optional): Whether to allow empty spaces in the table.
reference_element (PDFElement, optional): An element in a full row and a full
column. Will be used to specify the reference row and column. If None, the
top left element will be used, meaning the top row and left column will be
used. If there are gaps in these, you should specify a different reference.
Default: None.
tolerance (int, optional): For elements to be counted as in the same row or
column, they must overlap by at least `tolerance`. Default: 0.
Expand Down

0 comments on commit ea59c1d

Please sign in to comment.