Reference

camelot(1)

extract tables from PDFs

NAME

camelot - extract tables from PDFs

SYNOPSIS

camelot [OPTIONS] COMMAND [ARGS]...

DESCRIPTION

Camelot: PDF Table Extraction for Humans

OPTIONS

--version

Show the version and exit.

-q, --quiet TEXT

Suppress logs and warnings.

-p, --pages TEXT

Comma-separated page numbers. Example: 1,3,4 or 1,4-end or all.

-pw, --password TEXT

Password for decryption.

-o, --output TEXT

Output file path.

-f, --format [csv|excel|html|json|markdown|sqlite]

Output file format.

-z, --zip

Create ZIP archive.

-split, --split_text

Split text that spans across multiple cells.

-flag, --flag_size

Flag text based on font size. Useful to detect super/subscripts.

-strip, --strip_text TEXT

Characters that should be stripped from a string before assigning it to a cell.

-M, --margins FLOAT...

PDFMiner char_margin, line_margin and word_margin.

--help

Show this message and exit.

Commands:

lattice

Use lines between text to parse the table.

stream

Use spaces between text to parse the table.

SEE ALSO

This man page has been generated with help2man.

Run camelot command --help to see the full documentation of subcommands.

History

--flag_size since Debian 13 (Trixie); --format since Debian 13 (Trixie); --help since Debian 13 (Trixie); --margins since Debian 13 (Trixie); --output since Debian 13 (Trixie); --pages since Debian 13 (Trixie); --password since Debian 13 (Trixie); --quiet since Debian 13 (Trixie); --split_text since Debian 13 (Trixie); --strip_text since Debian 13 (Trixie); --version since Debian 13 (Trixie); --zip since Debian 13 (Trixie); -M since Debian 13 (Trixie); -f since Debian 13 (Trixie); -flag since Debian 13 (Trixie); -o since Debian 13 (Trixie); -p since Debian 13 (Trixie); -pw since Debian 13 (Trixie); -q since Debian 13 (Trixie); -split since Debian 13 (Trixie); -strip since Debian 13 (Trixie); -z since Debian 13 (Trixie).