# pdfium-bind

Safe Rust bindings to [PDFium](https://pdfium.googlesource.com/pdfium/) for PDF rendering.

## Crates

| Crate | Description |
|-------|-------------|
| `pdfium-bind` | Safe, high-level API for rendering PDF pages |
| `pdfium-bind-sys` | Raw FFI bindings (auto-generated via bindgen) |

## Quick Start

```rust
use pdfium_bind::Document;

let doc = Document::open("test.pdf")?;
let page = doc.page(0)?;
let bitmap = page.render(2.0)?; // 2x scale
// bitmap.buf() returns raw BGRA pixel data
```

## License

MIT
