Files
fil/docs/snippets/wasm/getting-started/extract_file.md

11 lines
348 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```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"}`);
```