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.