oxipdf-html 0.1.0

HTML+CSS → StyledTree adapter for the oxipdf PDF engine
Documentation

oxipdf-html

HTML+CSS to StyledTree adapter for the oxipdf PDF engine.

Parses HTML5 documents and CSS stylesheets, resolves the cascade, and produces a StyledTree that the oxipdf engine can render to PDF.

Usage

use oxipdf_html::html_to_tree;

let html = r#"<h1>Hello</h1><p>World</p>"#;
let tree = html_to_tree(html).unwrap();

Design

This crate is a consumer of oxipdf-ir, not part of the core rendering pipeline. It sits in the same position as any other input adapter — building a StyledTree from an input format.

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.