This commit is contained in:
15
docs/snippets/r/config/html_output.md
Normal file
15
docs/snippets/r/config/html_output.md
Normal file
@@ -0,0 +1,15 @@
|
||||
```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
|
||||
```
|
||||
Reference in New Issue
Block a user