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.1.0.tar.gz (32.4 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.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apograph-0.1.0.tar.gz
  • Upload date:
  • Size: 32.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 180ae913769e1e70d9a0cd948c113b06b32b563a62d4c853f815536b15bfb93c
MD5 f7e468dd2add3b4f20cfc15a8b3163fc
BLAKE2b-256 45948e48fb15a854b2133e81cd4d8ee53fe989f937d9d439a34926a5649ea48a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apograph-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e3072fee3efb579c1e1ff21be521ab9d92f4fe0427538aa291b86afa5bef9fb
MD5 e1e074ad07f84c67156e815a8b7ef343
BLAKE2b-256 c41c5f5d7a2d2042d092c62db61d84fd5854224ca0e5f5c1326ed3a649ffb2ab

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