rust-pptx 0.1.0

Parse PowerPoint PPTX and legacy PPT presentations into a structured model
Documentation

rust-pptx

by Extend

Parse PowerPoint presentations from bytes. The parser detects OOXML presentations and legacy PowerPoint binary presentations and returns a structured model of slides, shapes, text, charts, and embedded assets. Parsing limits bound input size, archive expansion, and XML complexity.

Install with cargo add rust-pptx. The Rust library target is named rust_pptx.

use rust_pptx::{parse_presentation, ParseError, ParseLimits, PresentationDocument};

fn parse(bytes: &[u8]) -> Result<PresentationDocument, ParseError> {
    parse_presentation(bytes, &ParseLimits::default())
}

The WebAssembly bindings are available as rust-pptx-wasm.