office_oxide 0.1.0

The fastest Office document processing library — DOCX, XLSX, PPTX, DOC, XLS, PPT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Common traits for all Office document format crates.

/// A parsed Office document that supports text extraction.
///
/// All format crates (`docx`, `xlsx`, `pptx`,
/// `doc`, `xls`, `ppt`) implement this trait
/// on their main document type.
pub trait OfficeDocument {
    /// Extract plain text from the document.
    fn plain_text(&self) -> String;

    /// Convert the document to a Markdown representation.
    fn to_markdown(&self) -> String;
}