Pdf2tables
PDF2Tables
Bases: PDFParserBase
Source code in Docs2KG/parser/pdf/pdf2tables.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
__init__(*args, **kwargs)
Initialize the class with the pdf file
Source code in Docs2KG/parser/pdf/pdf2tables.py
11 12 13 14 15 16 17 |
|
extract2tables(output_csv=False)
Extract Tables from the pdf file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output_csv |
bool
|
Whether to output the extracted data to a csv file. Defaults to False. |
False
|
Returns:
Type | Description |
---|---|
DataFrame
|
pd.DataFrame: The dataframe containing the table information |
Source code in Docs2KG/parser/pdf/pdf2tables.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|