Skip to main content

Convert HTML slides to PPTX with layout fidelity — Playwright extracts computed layout, python-pptx reproduces it

Project description

apograph

Convert HTML slides to PPTX with layout fidelity.

Playwright renders the HTML, extracts every element's computed position and styles, then python-pptx places shapes at proportional positions. The HTML is the single source of truth.

Install

pip install apograph
playwright install chromium

Usage

apograph slide.html                          # → slide.pptx
apograph slide.html --output deck.pptx       # custom output path
apograph slide.html --images ./headshots     # image directory
apograph slide.html --accent-color "rgb(219,0,17)"  # top accent bar
apograph slide.html --font "Century Gothic"  # override font
apograph slide.html --extract-only           # dump layout as JSON

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apograph-0.4.0.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apograph-0.4.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file apograph-0.4.0.tar.gz.

File metadata

  • Download URL: apograph-0.4.0.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for apograph-0.4.0.tar.gz
Algorithm Hash digest
SHA256 28b4cb7a18b7b7e3a24e6aa6003de7d839b6c33a53f37424c7ca0d268da7cf7b
MD5 8654ff18d96f0547d790c60c6fb68d1c
BLAKE2b-256 ee5c4c198f72a50e1dee71debcf2724fbad0f220f91c2a420e60e95fb0d4189f

See more details on using hashes here.

File details

Details for the file apograph-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: apograph-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for apograph-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9983132cf97d913051636578ead5c96a7dbc29dfc03cda1782ef429588de249d
MD5 5fc9212ecbd2cf6bb8914a823a544b8f
BLAKE2b-256 c46d38131592432b400ff8d7886d1796d5a09400870f507b1619e4455021d7e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page