laminapdf-render 0.7.0

Render PDF pages to RGBA pixel tiles in Rust behind one renderer interface, with limits on output size, cancellation, and a pure-Rust backend (hayro) behind a feature.
Documentation
//! The render backend contract ([ADR 0004]): every Lamina PDF surface renders pages through
//! [`RenderBackend`] and [`RenderDocument`], which draw bounded tiles of a page at a scale into
//! a caller-supplied straight-alpha RGBA8 buffer.
//!
//! - Requests are validated once, by [`TilePlan::new`], so every backend agrees on sizes and
//!   refuses oversized tiles (`render-too-large`) before allocating.
//! - The pure-Rust adapter, [`HayroBackend`], is behind the `hayro` feature: ADR 0004's CI
//!   oracle and debug choice. The PDFium adapter is the edge crate `laminapdf-render-pdfium`.
//! - Errors follow the ADR 0026 contract ([`RenderError`]).
//!
//! [ADR 0004]: https://github.com/laudebugs/laminapdf/blob/main/docs/decisions/0004-render-backend.md
#![forbid(unsafe_code)]

mod appearance;
mod backend;
mod error;
#[cfg(feature = "export")]
mod export;
#[cfg(feature = "hayro")]
mod hayro;
mod request;
mod source;
#[cfg(feature = "tiff")]
mod tiff_writer;

pub use appearance::{Annotated, DARK, Kept, PageAppearance, PagePalette, Quad, SEPIA, mostly_changed, recolour_tile};
pub use backend::{RenderBackend, RenderDocument};
pub use error::RenderError;
#[cfg(feature = "export")]
pub use export::{ExportFormat, ExportOptions, export_pages};
#[cfg(feature = "hayro")]
pub use hayro::HayroBackend;
pub use laminapdf_cos::{ByteSource, SourceError, merge_ranges};
pub use laminapdf_model::Matrix;
pub use laminapdf_syntax::{CancelToken, Rotation};
pub use request::{
    BYTES_PER_PIXEL, PixelRect, RenderFlags, RenderLimits, RenderOpenOptions, RenderPage, RenderRequest, Rgba8,
    TilePlan,
};
pub use source::read_all;
#[cfg(feature = "tiff")]
pub use tiff_writer::TiffWriter;