karet-pdf
Headless, pure-Rust PDF page rasterization for karet.
Wraps the hayro PDF interpreter/renderer (pure
Rust, no C *-sys dependencies) to turn PDF bytes into pages of straight
(un-premultiplied) 8-bit RGBA pixels. A renderer such as karet-fileview can then
hand those pixels to the Kitty graphics protocol (or a halfblock fallback). The crate
is headless — no ratatui, no terminal — so a PDF can be turned into pixels anywhere.
Parsing happens once in Document::load; pages are rasterized on demand via
Document::render_page, so a large document is not fully rendered up front. A
document outline (bookmarks) is available via Document::outline.
#
Part of the karet workspace.
License
Licensed under either of MIT or Apache-2.0 at your option.