Skip to main content

slidebake

slidebake turns slide-deck PDFs, including image-only PDFs exported from PowerPoint, into page-by-page Markdown. It uses local OCR first, then asks the OpenAI API to clean OCR noise into polished Markdown, with optional translation for each page.

Install

slidebake should be installed with Python 3.12. One of its OCR dependencies does not currently support newer Python versions.

pip install slidebake

For local development:

uv venv --python 3.12
uv sync
uv run slidebake --help

Usage

slidebake slides.pdf
# cleans OCR into slides.md

slidebake slides.pdf --target-lang zh-CN
# cleans OCR, translates it, and writes slides_zh-CN_translated.md

slidebake slides.pdf --target-lang zh-CN --bilingual
# cleans OCR, then writes source text plus zh-CN in slides_zh-CN_bilingual.md

Use -o/--output to choose an exact output path instead.

LLM cleanup and translation require:

export OPENAI_API_KEY="your_api_key_here"

You can also put OpenAI or OpenAI-compatible provider settings in ~/.config/slidebake/config.toml:

[openai]
api_key = "your_api_key_here"
model = "gpt-5.4-mini"
api = "responses"

For providers that expose an OpenAI-compatible Chat Completions endpoint:

[openai]
api_key = "provider_api_key"
base_url = "https://api.example.com/v1"
model = "provider-model"
api = "chat_completions"

Command-line options and SLIDEBAKE_OPENAI_* environment variables override the config file. Use --config path/to/config.toml to load a different config file.

Useful options:

  • --pages 1-10,15 limits processing to specific pages.
  • --dpi 220 changes render resolution for OCR.
  • --model gpt-5.4-mini changes the OpenAI model.
  • --openai-base-url https://api.example.com/v1 uses an OpenAI-compatible endpoint.
  • --openai-api chat_completions uses the Chat Completions compatibility path.
  • --check-key checks resolved OpenAI-compatible settings without processing a PDF.
  • --keep-temp keeps rendered page images for debugging.
  • --overwrite replaces an existing output file.

Metadata

Release files for slidebake 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slidebake 0.1.2
File Size Uploaded Provenance Actions
slidebake-0.1.2.tar.gz 14.2 kB With provenance Details for slidebake-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slidebake 0.1.2
File Interpreter ABI Platform Actions
slidebake-0.1.2-py3-none-any.whl Python 3 none any Details for slidebake-0.1.2-py3-none-any.whl

Total release size: 28.2 kB

Release files / slidebake-0.1.2.tar.gz

Download URL slidebake-0.1.2.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c8e312f5e43d75cc63bad39fa6dbc21e23f38446c43e5ac051c7e294371ac9fa
BLAKE2b-256 checksum
How to use checksums
c530ef97bf38124f0a6f2688886e732fb3843693304cc3c5118eeab57f9a47c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Release files / slidebake-0.1.2-py3-none-any.whl

Download URL slidebake-0.1.2-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0c011008e41b540871edb476d8632053231abb50fc03f0a3255fe1e2fd5c4ee
BLAKE2b-256 checksum
How to use checksums
ac6d6d5b57032877e259efe6673040f00a833f8a8101e28c2fe1375ded2d7173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Security for slidebake 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for slidebake-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page