slidev2pptx
A Python package for exporting Slidev slides to PPTX.
Installation
pip install slidev2pptx
Usage Example
Using slidev2pptx as a command line tool (details):
slidev2pptx -i ./slidev/ -o ./output.pptx
Using slidev2pptx as a Python package (details):
from slidev2pptx import slidev2pptx
slidev2pptx(slidev_path="./slidev/", output_path="./output.pptx")
[!IMPORTANT] Make sure you have set up your Slidev repository to support exporting to PNG (see Slidev document) before using
slidev2pptx.
Command Line Tool
The slidev2pptx command line tool exports Slidev slides to PPTX with the following options:
| Option | Description | Default |
|---|---|---|
-i, --input |
Path to the Slidev project directory. | ./ |
-o, --output |
Path to the output PPTX file. | ./slides-export.pptx |
-s, --scale |
Scale of Slidev image export. | 2 |
Python API
slidev2pptx.slidev2pptx(slidev_path: str, output_path: str, scale: int = 2) -> None
Convert a Slidev slide deck stored at slidev_path to a PPTX slide deck and store it at output_path.
The scale argument specifies the scale for the Slidev image export.
slidev2pptx.build_pptx(notes_path: str, image_directory: str, output_path: str) -> None
Build a PPTX slide deck and store it at output_path, using the Slidev image export stored at image_directory and the presenter notes stored at notes_path.
slidev2pptx.build_pptx is a lower-level function used by slidev2pptx.slidev2pptx.
Caveats
slidev2pptxonly works for Slidev version >= 0.47.4 as it utilizes--scaleargument for image export (reference).- Animation and interactivity are not preserved in the exported PPTX file.
Motivation
Slidev does not readily support exporting slides to PPTX (as of version 0.48.9), but I find it necessary on several occasions:
- The presentation is required to be conducted on a coordinator's machine.
- A PPTX file of the slides is requested for archival purposes.
- Someone unfamiliar with Slidev needs to present my slides.
Thanks
This package is inspired by pdf2pptx.
Metadata
Release files for slidev2pptx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slidev2pptx-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for slidev2pptx-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slidev2pptx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for slidev2pptx-0.1.0-py3-none-any.whl |
Total release size: 10.7 kB
Release files / slidev2pptx-0.1.0.tar.gz
| Download URL | slidev2pptx-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20cb79bd770f2af4c5c2f435b48be6c533828e375ce112e49dab549cbd05d23b
|
|
BLAKE2b-256 checksum How to use checksums |
fa3fddc9bb5bd936d4af9cd0362407078d7b0cf448611f925408b134c2825e77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure
|
Release files / slidev2pptx-0.1.0-py3-none-any.whl
| Download URL | slidev2pptx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
695f2c679e772a6f0c0b6b7dc12bf45f08c1a1cdf6e8d819160b49f69bd0fca4
|
|
BLAKE2b-256 checksum How to use checksums |
a2801cb519d12b5ecc646bf4fb7a475dfc7e3dbfb6bf116ad739b3be599133b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure
|
Security for slidev2pptx 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.