Files
fil/docs/snippets/r/getting-started/basic_usage.md

16 lines
301 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```r title="R"
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))
```