% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{detect_pdf_content_type}
\alias{detect_pdf_content_type}
\title{Detect PDF Content Type}
\usage{
detect_pdf_content_type(file_path)
}
\arguments{
\item{file_path}{Character string path to PDF file}
}
\value{
Character string: "text" or "unknown"
}
\description{
Analyzes PDF to determine if it contains readable text.
}
\details{
Attempts text extraction using pdftools. Returns "text" if successful,
or "unknown" if extraction fails or PDF is empty.

For table extraction from PDFs, use \code{\link{extract_tables_from_pdf_py}}.
}
\examples{
\donttest{
pdf_path <- "path/to/document.pdf"
content_type <- detect_pdf_content_type(pdf_path)
print(content_type)
}
}
\concept{pdf}
