sozi-projects / Sozi-export

Export Sozi presentations to PDF or video
Mozilla Public License 2.0
20 stars 7 forks source link
presentation sozi svg

:warning: Since Sozi 20.10, export features are integrated in the Sozi presentation editor. Development of the standalone Sozi-export tool is halted and there is no plan to do any maintenance work on it.

Export Sozi presentations to PDF, PPTX or video

This tool is separate from the Sozi presentation editor.

Install

The PDF exporter depends on pdfjam, a shell script for manipulating PDF files. The video exporter is based on libav. Users of Debian-based distributions can install the texlive-extra-utils and libav-tools packages.

sudo apt install texlive-extra-utils libav-tools

The Sozi export tool is available as an NPM package. Install node.js 0.10 or later (Linux users can use the NodeSource distributions), then:

sudo npm install -g sozi-export

With NPM 5, the installation is known to fail with this message:

Phantom installation failed { Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1522473900842/phantomjs-2.1.1-linux-x86_64' -> '/usr/lib/node_modules/sozi-export/node_modules/phantomjs-prebuilt/lib/phantom'

This can be fixed with the following command:

sudo npm install -g sozi-export --unsafe-perm

Convert a Sozi presentation to PDF

sozi-to-pdf [options] presentation.sozi.html

Options:

The width, height and resolution options specify the geometry of the browser window where the presentation is rendered. The paper and portrait options specify the page format to use in the final PDF document.

The include option is always applied before the exclude option. Frames lists have the following syntax:

For instance : -i 2,4:6,10:12:18 will include frames 2, 4, 5, 6, 10, 12, 14, 16, 18.

Convert a Sozi presentation to PPTX

sozi-to-pptx [options] presentation.sozi.html

Options:

The width, height and resolution options specify the geometry of the browser window where the presentation is rendered.

The include option is always applied before the exclude option. Frames lists have the following syntax:

For instance : -i 2,4:6,10:12:18 will include frames 2, 4, 5, 6, 10, 12, 14, 16, 18.

Convert a Sozi presentation to video

sozi-to-video [options] presentation.sozi.html

Options:

Known issues and limitations

This tool uses a headless web browser for rendering. PhantomJS and SlimerJS both have benefits and limitations:

Currently, the PDF and PPTX export tools render each frame to a PNG image and joins them into a single document.