dam4rus / msoffice-pptx-rs

A library to deserialize pptx files in Rust
MIT License
26 stars 4 forks source link

Saving slide as Image #7

Open koptan opened 1 year ago

koptan commented 1 year ago

Hi and Thanks for the crate.

Quick question : is there anyway to export slide to Image 'jpg' or other format ?

peteringram0 commented 1 year ago

Also keen to know about this. The repo lacks some examples. @dam4rus are you able to advise?

dam4rus commented 1 year ago

Hi, thanks for the interest in this crate. As you can see this repository is largely unmaintained since life got in the way and there wasn't much interest for it. Actually, this repository is deprecated and replaced by https://github.com/dam4rus/oox-rs (which is unmaintained as well :) ).

To answer the question, this crate was never intended to have high level operations like exporting to an image. It's main purpose is to allow accessing elements in a pptx document in Rust code. Rendering pptx slides are pretty complex and requires a ton of work. I have some experience in it but would rather not go there on my own. AFAIK LibreOffice has a headless mode that allow converting pptx files to an image via command line. If you want to have it rendered to memory, I'm not really aware of such renderer.