# oxipdf-html
HTML+CSS to `StyledTree` adapter for the [oxipdf](https://crates.io/crates/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
```rust,ignore
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](../../LICENSE-APACHE) or [MIT License](../../LICENSE-MIT) at your option.