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 extract_tables_from_pdf_py.
Examples
if (FALSE) { # \dontrun{
pdf_path <- "path/to/document.pdf"
content_type <- detect_pdf_content_type(pdf_path)
print(content_type)
} # }
