% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{extract_pdf_smart}
\alias{extract_pdf_smart}
\title{Smart PDF Extraction with Auto-Detection}
\usage{
extract_pdf_smart(
  file_path,
  doc_type = "auto",
  vision_provider = "gemini",
  vision_model = NULL,
  api_key = NULL,
  envname = "textanalysisr-env"
)
}
\arguments{
\item{file_path}{Character string path to PDF file}

\item{doc_type}{Character: "auto" (default), "academic", or "general" (kept for compatibility)}

\item{vision_provider}{Character: "openai" or "gemini" (default)}

\item{vision_model}{Character: Model name for vision analysis}

\item{api_key}{Character: API key for cloud providers}

\item{envname}{Character: Kept for backward compatibility, ignored}
}
\value{
List with extracted content ready for text analysis
}
\description{
Extracts text and visual content from PDFs using R-native pdftools
and vision LLM APIs. Routes directly to multimodal extraction.
}
\concept{pdf}
\keyword{internal}
