Metadata-Version: 2.4
Name: pdfbro
Version: 0.2.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Summary: pdfbro: Rust-native PDF conversion, embeddable in Python.
License: AGPL-3.0-only
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/inkkit/pdfbro
Project-URL: Repository, https://github.com/inkkit/pdfbro

# pdfbro (Python)

Rust-native PDF conversion, embeddable. See spec at
`docs/superpowers/specs/2026-05-01-bindings-design.md`.

## Install

    pip install pdfbro

## Quick start

    from pdfbro import PdfBro
    with PdfBro() as f:
        pdf = f.html_to_pdf("<h1>hi</h1>")
        open("out.pdf", "wb").write(pdf)

## Async

    import asyncio
    from pdfbro import AsyncPdfBro

    async def main():
        f = await AsyncPdfBro.create()
        try:
            pdf = await f.html_to_pdf("<h1>hi</h1>")
        finally:
            await f.close()
        return pdf

    asyncio.run(main())

