This commit is contained in:
11
docs/snippets/python/api/extract_bytes_sync.md
Normal file
11
docs/snippets/python/api/extract_bytes_sync.md
Normal file
@@ -0,0 +1,11 @@
|
||||
```python title="Python"
|
||||
from kreuzberg import extract_bytes_sync, ExtractionConfig
|
||||
|
||||
with open("document.pdf", "rb") as f:
|
||||
content = f.read()
|
||||
|
||||
result = extract_bytes_sync(content, "application/pdf", config=ExtractionConfig())
|
||||
|
||||
print(result.content[:200])
|
||||
print(f"Tables: {len(result.tables)}")
|
||||
```
|
||||
Reference in New Issue
Block a user