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.2.0.tar.gz (32.8 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.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apograph-0.2.0.tar.gz
  • Upload date:
  • Size: 32.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 4421b4780b1c04012f1d7fa81278e13f936382fc6967001880deab25e33d66bb
MD5 e6b7fb0d531d3b11b4c7d97bb0dd3015
BLAKE2b-256 68964d9baa3d053c16e614f46d1e1b786129791d2c55f8a863d9c8ab71878502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apograph-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ceed95e2ab47f1a6bf9ccf53a0b1ffd3e3b55e6c0c3279a638cd53c2e8cff40c
MD5 4747006bd2c7b15f4ce53f7d031beeb2
BLAKE2b-256 4752cee705ae5c14737a681ecd060d9ccc28516004a0d4637e7073222b1bf29e

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