Skip to main content

pdf-generator

LaTeX-based PDF generator — renders a PDF from a JSON document description (headings, text, images, lines) via pylatex and a LaTeX engine.

Installation

pip install entirius-py-pdf-generator

PDF generation requires a LaTeX engine (e.g. xelatex) on the system:

sudo apt install texlive-xetex

Usage

from pdf_generator.worker.latex import PDFGenerator

pdf = PDFGenerator(
    in_out_file="/tmp/report",
    json_data={"document_contents": [{"type": "h1", "content": "Hello"}]},
    document_variables={},
)
pdf.generate_pdf(compiler="xelatex")

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest) — PDF test skipped where xelatex is absent

Development and agent instructions: AGENTS.md.

License

Mozilla Public License 2.0 — see LICENSE.

Metadata

Release files for entirius-py-pdf-generator 2.0.0

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

Source distribution (sdist)

Source distribution for entirius-py-pdf-generator 2.0.0
File Size Uploaded
entirius_py_pdf_generator-2.0.0.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for entirius-py-pdf-generator 2.0.0
File Interpreter ABI Platform
entirius_py_pdf_generator-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.8 kB

Release files / entirius_py_pdf_generator-2.0.0.tar.gz

Download URL entirius_py_pdf_generator-2.0.0.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
67c4d6c4a9011492685652c751600123c86d93e9cb923e6246ac315b5b179e10
BLAKE2b-256 checksum
How to use checksums
3b3612c8277708a93c7c95675b6e085dbe6d3ba27f143aec4c23dd57bc64b682
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entirius_py_pdf_generator-2.0.0-py3-none-any.whl

Download URL entirius_py_pdf_generator-2.0.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
180f453e745fc37c8636fe957446269edee1f54cab7109ac9b5bacd924498573
BLAKE2b-256 checksum
How to use checksums
3e0853c80c89081ed325f15c1b2c3c2d601e6716a307a127f74040a5b32c3b63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

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