Files
fil/docs/snippets/r/config/html_output.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

16 lines
327 B
Markdown

```r title="R"
library(kreuzberg)
config <- list(
output_format = "html",
html_output = list(
theme = "git_hub",
embed_css = TRUE
)
)
json <- extract_file_sync("document.pdf", "application/pdf", config)
result <- jsonlite::fromJSON(json, simplifyVector = FALSE)
cat(result$content) # HTML with kb-* classes
```