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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| entirius_py_pdf_generator-2.0.0.tar.gz | 26.0 kB | Without provenance | Details for entirius_py_pdf_generator-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_py_pdf_generator-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for entirius_py_pdf_generator-2.0.0-py3-none-any.whl |
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}
|
Security for entirius-py-pdf-generator 2.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.