% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{process_pdf_file}
\alias{process_pdf_file}
\title{Process PDF File}
\usage{
process_pdf_file(file_path, content_type = "auto")
}
\arguments{
\item{file_path}{Character string path to PDF file}

\item{content_type}{Character string: "auto" or "text" (default: "auto")}
}
\value{
List with:
\itemize{
\item data: Data frame with extracted content
\item type: Character string indicating content type ("text" or "error")
\item success: Logical indicating success
\item message: Character string with status message
}
}
\description{
Main function to process PDF files - extracts text content using pdftools.
For table extraction, use \code{\link{process_pdf_file_py}}.
}
\details{
This function extracts text content from PDFs using pdftools package.
Works best with text-based PDFs (not scanned images).

For PDFs containing tables or complex layouts, use the Python-based
\code{\link{process_pdf_file_py}} which provides better table extraction.
}
\concept{pdf}
\keyword{internal}
