```typescript title="WASM"
import { extractBytes, initWasm } from "@kreuzberg/wasm";

await initWasm();

const response = await fetch("document.pdf");
const buffer = await response.arrayBuffer();
const data = new Uint8Array(buffer);

const result = await extractBytes(data, "application/pdf");
console.log(result.content);
```
