Files
fil/docs/snippets/r/getting-started/basic_usage.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

301 B

library(kreuzberg)

config <- ExtractionConfig$default()

json <- extract_file_sync(
  path = "document.pdf",
  mime_type = NULL,
  config = config
)
result <- jsonlite::fromJSON(json, simplifyVector = FALSE)

cat(result$content)
cat(sprintf("\nMIME Type: %s\n", result$mime_type))