rusdox 0.1.1

Generate DOCX and PDF from YAML at Rust speed.
Documentation
//! `RusDox` is a focused Rust library for building, reading, and saving
//! Microsoft Word `.docx` documents.
//!
//! The crate models the document body with strongly typed paragraphs, runs,
//! and tables while using fast ZIP and XML primitives internally.
//!
//! # Example
//!
//! ```rust
//! use rusdox::{Document, Paragraph, Run};
//!
//! let mut document = Document::new();
//! document.push_paragraph(
//!     Paragraph::new()
//!         .add_run(Run::from_text("Hello ").bold())
//!         .add_run(Run::from_text("RusDox").italic()),
//! );
//!
//! assert_eq!(document.paragraphs().count(), 1);
//! ```

pub mod config;
mod document;
mod error;
mod layout;
mod metadata;
mod paragraph;
mod run;
pub mod spec;
mod spec_expand;
pub mod studio;
mod style;
mod table;
pub mod validate;
mod visual;
mod xml_utils;

pub use document::{Document, DocumentBlockRef, DocumentMode};
pub use error::{DocxError, Result};
pub use layout::{HeaderFooter, PageNumberFormat, PageNumbering, PageSetup};
pub use metadata::DocumentMetadata;
pub use paragraph::{Paragraph, ParagraphAlignment, ParagraphList, ParagraphListKind};
pub use run::{Run, RunProperties, UnderlineStyle, VerticalAlign};
pub use style::{
    ParagraphStyle, ParagraphStyleProperties, RunStyle, RunStyleProperties, Stylesheet, TableStyle,
    TableStyleProperties,
};
pub use table::{
    Border, BorderStyle, Table, TableBorders, TableCell, TableCellProperties, TableProperties,
    TableRow, TableRowProperties,
};
pub use validate::{
    validate_config, validate_spec, validate_spec_with_config, ValidationIssue, ValidationReport,
    ValidationSeverity,
};
pub use visual::{Visual, VisualFormat, VisualKind, VisualSizing, VisualSource};