6 releases
Uses new Rust 2024
| 0.1.0 | Apr 11, 2026 |
|---|
#2894 in Text processing
94 downloads per month
Used in 9 crates
(7 directly)
190KB
4K
SLoC
oxipdf-ir
Intermediate representation types for the oxipdf PDF engine.
This crate defines the StyledTree IR that serves as the input contract for the oxipdf rendering pipeline. Consumers construct a StyledTree from their domain AST and submit it to the engine for layout and emission.
What's Inside
StyledTreeandStyledTreeBuilder— the validated IR treeNode,NodeId,ContentVariant— node types and contentResolvedStyle— fully resolved styles (no inheritance, no cascade)Pt,Dimension,LengthPercentage— canonical unit typesIrVersion— schema versioning with forward-compatibility rulesSemanticRole— semantic markup for theming
IR Schema Versioning
The IR schema is versioned via IrVersion. Same major version is forward-compatible (older tree, newer engine). Different major versions are incompatible.
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.
Dependencies
~140–530KB
~12K SLoC