% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{extract_text_from_pdf}
\alias{extract_text_from_pdf}
\title{Extract Text from PDF}
\usage{
extract_text_from_pdf(file_path)
}
\arguments{
\item{file_path}{Character string path to PDF file}
}
\value{
Data frame with columns: page (integer), text (character)
Returns NULL if extraction fails or PDF is empty
}
\description{
Extracts text content from a PDF file using pdftools package.
}
\details{
Uses \code{pdftools::pdf_text()} to extract text from each page.
Preserves page structure and cleans whitespace.
Works best with text-based PDFs (not scanned images).
}
\concept{pdf}
\keyword{internal}
