document-svg 2.0.2

Convert PDF, Word, Excel, PowerPoint, diagram and CAD files into one SVG per page, locally — a Rust library and the docsvg command
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! OpenDocument Graphics (ODG/OTG/FODG) vector drawing preview.
//!
//! ODG shares its page and drawing object vocabulary with ODP, but stores pages
//! under `office:drawing`. The bounded shared ODF drawing parser retains common
//! shapes and text while reporting unsupported effects and embedded media.

use std::path::Path;

use crate::convert::{ConvertOptions, PageConsumer};
use crate::error::Result;

pub(crate) fn convert(
    path: &Path,
    options: &ConvertOptions,
    sink: &mut dyn PageConsumer,
) -> Result<Vec<String>> {
    crate::document::odp::convert_drawing(path, options, sink)
}