Expand description
oxipdf-html — HTML+CSS → StyledTree adapter for oxipdf.
Parses HTML5 documents and CSS stylesheets, resolves the cascade,
and produces a StyledTree that the oxipdf engine can render to PDF.
§Example
ⓘ
use oxipdf_html::html_to_tree;
let html = r#"<h1>Hello</h1><p>World</p>"#;
let tree = html_to_tree(html).unwrap();This crate is a consumer of oxipdf-ir, not part of the core engine.
It sits in the same position as oxidoc-export — building a StyledTree
from an input format.
Structs§
- Convert
Options - Options for HTML → StyledTree conversion.
Enums§
- Html
Error - Error produced during HTML → StyledTree conversion.
Functions§
- html_
to_ tree - Convert an HTML string to a
StyledTree. - html_
to_ tree_ with_ css - Convert an HTML string to a
StyledTreewith additional CSS. - html_
to_ tree_ with_ options - Convert an HTML string to a
StyledTreewith full options.