Skip to content

API Reference parrot_loaders.pdftables

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_loaders.pdftables

View source

Alias BasePDF

Re-exported from parrot_loaders.basepdf.BasePDF.

Attribute ENHANCED_BACKENDS_AVAILABLE

Attribute MarkItDown

Attribute PANDAS_AVAILABLE

Class PDFTablesLoader

Specialized loader for extracting tables from PDF files.

This loader focuses on table extraction with multiple backends:

  1. PyMuPDF (fitz) with configurable table detection settings
  2. MarkItDown for universal table extraction (optional)

Supports output formats:

  • JSON (via pandas DataFrame serialization)
  • Markdown table format
  • Raw table data (list of lists)
Parameter Type Default Description
source Union[str, PurePath, List[PurePath]]
tokenizer Callable[..., Any] None
text_splitter Callable[..., Any] None
source_type str 'pdf'
table_backend str 'auto'
output_format Literal['json', 'markdown', 'raw'] 'json'
intersection_tolerance float 3.0
vertical_strategy str 'lines'
horizontal_strategy str 'lines'
min_words_vertical int 3
min_words_horizontal int 1
keep_blank_chars bool False
snap_tolerance float 3.0
join_tolerance float 3.0
edge_min_length float 3.0
min_table_rows int 2
min_table_cols int 2
min_cell_content_length int 1
skip_empty_tables bool True
merge_duplicate_headers bool True
clean_whitespace bool True
strip_html bool True
**kwargs {}

Method PDFTablesLoader.get_table_settings

Get current table extraction settings.

get_table_settings() -> Dict[str, Any]

Returns: Dict[str, Any]

Method PDFTablesLoader.update_table_settings

Update table extraction settings.

update_table_settings(**settings)

Parameter Type Default Description
**settings {}

Method PDFTablesLoader.get_supported_backends

Get list of available backends.

get_supported_backends() -> List[str]

Returns: List[str]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally