Files
fil/docs/snippets/wasm/getting-started/extract_file.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

11 lines
348 B
Markdown

```typescript title="WASM"
import init, { extractFile } from "kreuzberg-wasm";
await init();
const result = await extractFile("document.pdf", undefined, undefined);
console.log(`Extracted content: ${result.content}`);
console.log(`Tables found: ${result.tables?.length ?? 0}`);
console.log(`Format: ${result.metadata?.format ?? "unknown"}`);
```