pptx 0.1.0

A Rust library for creating and manipulating PowerPoint (.pptx) files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Create a minimal PowerPoint presentation with a blank slide.
//!
//! Run with: `cargo run --example create_presentation`

use pptx::Presentation;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut prs = Presentation::new()?;
    let layouts = prs.slide_layouts()?;
    let _slide = prs.add_slide(&layouts[0])?;
    prs.save("example_output.pptx")?;
    println!("Created example_output.pptx with 1 slide");
    Ok(())
}