Skip to main content

llama-index readers pdf_table integration

Project description

PDF Table Loader

pip install llama-index-readers-pdf-table

This loader reads the tables included in the PDF.

Users can input the PDF file and the pages from which they want to extract tables, and they can read the tables included on those pages.

Usage

Here's an example usage of the PDFTableReader. pages parameter is the same as camelot's pages. Therefore, you can use patterns such as all, 1,2,3, 10-20, and so on.

from llama_index.readers.pdf_table import PDFTableReader
from pathlib import Path

reader = PDFTableReader()
pdf_path = Path("/path/to/pdf")
documents = reader.load_data(file=pdf_path, pages="80-90")

Example

This loader is designed to be used as a way to load data into LlamaIndex.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_readers_pdf_table-0.2.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_pdf_table-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_pdf_table-0.2.0.tar.gz
Algorithm Hash digest
SHA256 63fa7eb1355c5d8a2b2b30f110cf967c57567ea0a711acf35b2e848e595088c6
MD5 bbc4119739797932cf9c807b7e54a07a
BLAKE2b-256 30c4230b960f66c6d2aca6ec9fa4d475e3d3174c98f624c6a4a12f92e65121ed

See more details on using hashes here.

File details

Details for the file llama_index_readers_pdf_table-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_pdf_table-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6029ddf828f5ac4c487f7fe2d3ac409548e79c5048519ea278e65f32188845a7
MD5 73fbcfa91eedd9abfcf57fb428f99d30
BLAKE2b-256 99e08afc3648b1a053e5c75b571abe870bc89a2b251b7851b2255bbd7f3c976e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page