oxml-drawing 0.2.0

DrawingML models and serialization for OOXML documents
Documentation

oxml-drawing

Typed DrawingML colours, geometry, fills, lines, effects, themes, and text models used across OOXML formats.

Use it when

Use this crate when reading or writing DrawingML shared by DOCX and PPTX packages. Use rpptx or rdocx for complete documents.

Relationship

It consumes format-neutral OOXML primitives and supplies drawing models to presentation and rendering crates.

Example

use oxml_drawing::fill::Fill;

let fill = Fill::from_xml(
    br#"<a:noFill xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>"#,
)?;
assert!(matches!(fill, Fill::NoFill(_)));
# Ok::<(), oxml_drawing::fill::FillError>(())

Add oxml-drawing = "0.2.0" to your dependencies. Browse the typed DrawingML API before constructing schema-level values directly.