A library to deserialize pptx files in Rust
Clone or download
Kalmár Róbert
Kalmár Róbert Added documentation
Latest commit 998b63e Feb 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Added documentation Feb 1, 2019
tests Moved shared elements to a different crate Jan 8, 2019
.gitignore Refactoring Nov 22, 2018
Cargo.toml Moved shared elements to a different crate Jan 8, 2019
LICENSE Added license Dec 14, 2018
README.md Added documentation to some elements Jan 12, 2019
rustfmt.toml Formatted code with rustfmt Dec 21, 2018

README.md

msoffice-pptx-rs

A library to deserialize pptx files in Rust.

Latest version Documentation

Overview

msoffice-pptx-rs is a low level deserializer for Microsoft's OfficeOpen XML pptx file format. It's still WIP, so expect API breaking changes.

The Office Open XML file formats are described by the ECMA-376 standard. The types represented in this library are generated from the Transitional XML Schema's, which is described in ECMA-376 4th edition Part 4, "pml.xsd" file.

Documentation is generated from the "Ecma Office Open XML Part 1 - Fundamentals And Markup Language Reference.pdf" file, found in ECMA-376 4th edition Part 1

Simple usage

extern crate msoffice_pptx;

use msoffice_pptx::document::PPTXDocument;

pub fn main() {
  let document = PPTXDocument::from_file(Path::new("test.pptx")).unwrap();
  
  for (slide_path, slide) in &document.slide_map {
    // Do something with slides
  }
}