kcode-html-to-pdf 0.1.0

A tiny self-contained HTML/CSS to PDF wrapper around Ironpress
Documentation

kcode-html-to-pdf

A tiny Rust wrapper that renders self-contained HTML/CSS documents to PDF bytes with Ironpress.

use kcode_html_to_pdf::{render, Font};

let pdf = render(
    "<!doctype html><html><body><h1>Hello</h1></body></html>",
    vec![],
)?;
# Ok::<(), kcode_html_to_pdf::RenderError>(())

Supply custom licensed fonts at runtime as Font { family, ttf }. Keep images self-contained as data URLs or inline SVG, and express page geometry and page breaks in CSS. Sanitization remains enabled; remote loading and filesystem base paths are not exposed.

See Documentation.md for the complete contract.