Skip to main content

Crate rdocx_layout

Crate rdocx_layout 

Source
Expand description

Layout engine for converting DOCX flow model to positioned page frames.

This crate implements style resolution, font loading, text shaping, line breaking, block/table layout, and pagination to produce LayoutResult containing PageFrames with absolutely-positioned elements.

Re-exports§

pub use error::LayoutError;
pub use error::Result;
pub use input::FontFile;
pub use input::ImageData;
pub use input::LayoutInput;
pub use output::Color;
pub use output::DocumentMetadata;
pub use output::FontData;
pub use output::FontId;
pub use output::GlyphRun;
pub use output::LayoutResult;
pub use output::PageFrame;
pub use output::Point;
pub use output::PositionedElement;
pub use output::Rect;

Modules§

block
Block-level layout: paragraphs and tables as positioned blocks.
bundled_fonts
Bundled fallback fonts for standalone operation.
engine
Layout engine orchestrator: ties all phases together.
error
Layout engine error types.
font
Font loading, resolution, shaping, and metrics.
input
Input types for the layout engine.
line
Line breaking: converts inline items into laid-out lines.
output
Output types for the layout engine: positioned page frames, glyph runs, etc.
paginator
Pagination: distribute blocks across pages with constraints.
style_resolver
Style resolution: cascade styles and generate numbering markers.
table
Table layout: column widths, cell content, merge handling.

Functions§

layout_document
Lay out a complete DOCX document, producing positioned page frames.