This commit is contained in:
12
docs/snippets/r/getting-started/hello_world.md
Normal file
12
docs/snippets/r/getting-started/hello_world.md
Normal file
@@ -0,0 +1,12 @@
|
||||
```r title="R"
|
||||
library(kreuzberg)
|
||||
|
||||
# Extract a PDF file
|
||||
result <- extract_file_sync("example.pdf")
|
||||
|
||||
# Print a preview of the extracted content
|
||||
content_preview <- substr(content(result), 1L, 200L)
|
||||
cat("Content preview:\n")
|
||||
cat(content_preview)
|
||||
cat("\n...\n")
|
||||
```
|
||||
Reference in New Issue
Block a user