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.3.0.tar.gz (33.5 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.3.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apograph-0.3.0.tar.gz
  • Upload date:
  • Size: 33.5 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.3.0.tar.gz
Algorithm Hash digest
SHA256 682798e954f7684f023f0fba5db77d6aa9e4cad184f82fd79b9ea0e58316084b
MD5 c3e1e290f9d5bfc97e72f2bc73f60897
BLAKE2b-256 6c5033f649f2105ed824967e72b87a9e85c01ca4f5eefdc62caa9150aa1ee7ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apograph-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d0c4f4614d601f0a6ea7f71d6f7002be46e4737cec33e491d18daeb012d5083
MD5 769bff3a9b8febbf1c3c6a651fc02b4d
BLAKE2b-256 810cab98cd34750acf4f5ab0f1ba6addf00aaba4502fb2490288d79b9717df48

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