Exporting presentations
Presentations can be exported to PDF and HTML, to allow easily sharing the slide deck at the end of a presentation.
Presentations can be converted into PDF by using weasyprint. Follow their installation instructions since it may require you to install extra dependencies for the tool to work.
note
If you were using presenterm-export before it was deprecated, that tool already required weasyprint so it is already installed in whatever virtual env you were using and there's nothing to be done.
After you've installed weasyprint, run presenterm with the --export-pdf
parameter to generate the output PDF:
presenterm --export-pdf examples/demo.md
The output PDF will be placed in examples/demo.pdf
. Alternatively you can use the --output
flag to specify where you
want the output file to be written to.
note
If you're using a separate virtual env to install weasyprint just make sure you activate it before running
presenterm with the --export-pdf
parameter.
HTML
Similarly, using the --export-html
parameter allows generating a single self contained HTML file that contains all
images and styles embedded in it. As opposed to PDF exports, this requires no extra dependencies:
presenterm --export-html examples/demo.md
The output file will be placed in examples/demo.html
but this behavior can be configured via the --output
flag just
like for PDF exports.
Configurable behavior
See the settings page to see all the configurable behavior around presentation exports.