% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{extract_tables_from_pdf_py}
\alias{extract_tables_from_pdf_py}
\title{Extract Tables from PDF using Python}
\usage{
extract_tables_from_pdf_py(file_path, pages = NULL, envname = NULL)
}
\arguments{
\item{file_path}{Character string path to PDF file}

\item{pages}{Integer vector of page numbers to process (NULL = all pages)}

\item{envname}{Character string, name of Python virtual environment
(default: "textanalysisr-env")}
}
\value{
Data frame with extracted table data
Returns NULL if no tables found or extraction fails
}
\description{
Extracts tabular data from PDF using pdfplumber (Python).
No Java required - pure Python solution.
}
\details{
Uses pdfplumber Python library through reticulate.
Works with complex table layouts without Java dependency.
}
\examples{
if (interactive()) {
setup_python_env()

pdf_path <- "path/to/table_document.pdf"
table_data <- extract_tables_from_pdf_py(pdf_path)
head(table_data)
}
}
\concept{pdf}
\keyword{internal}
