Skip to main content

Python PDF Generator

https://pypi.org/project/pdfpug/ https://pdfpug.readthedocs.io/en/latest/?badge=latest

PdfPug is a tool that makes it easy to create beautiful PDF files from scratch. It provides simple and easy to use APIs that allow for quick creation of PDF files. PdfPug consists of small building blocks/components like Table, List, Header etc. and the ability to customise these components to suit different use cases.

Note: PdfPug is a very new package whose APIs are not stable. It can be considered to be in pre-alpha development stage! Keep an eye out for updates.

Here is an example,

>>> from pdfpug import Header, Paragraph, PdfReport
>>> intro_header = Header('Introduction to PdfPug')
>>> para = Paragraph(
...     "Lorem Ipsum is <b>simply</b> <u>dummy</u> text of the printing and typesetting "
...     "industry. Lorem Ipsum has been the industry's standard dummy text "
...     "ever since the 1500s, when an unknown printer took a galley of type"
...     " and scrambled it to make a type specimen book. It has survived not "
...     "only five centuries, but also the leap into electronic typesetting, "
...     "remaining essentially unchanged. It was popularised in the 1960s with "
...     "the release of Letraset sheets containing Lorem Ipsum passages, and "
...     "more recently with desktop publishing software like Aldus PageMaker "
...     "including versions of Lorem Ipsum."
... )
>>> report = PdfReport()
>>> report.add_element(intro_header)
>>> report.add_element(para)
>>> report.generate_pdf('pdfpug-report.pdf')

Installation

PdfPug is published on PyPi and can be installed from there:

$ pip install pdfpug

Documentation

Documentation is available from https://pdfpug.readthedocs.io/en/latest/

Metadata

Release files for pdfpug 0.5.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 pdfpug 0.5.0
File Size Uploaded Provenance Actions
pdfpug-0.5.0.tar.gz 125.5 kB Without provenance Details for pdfpug-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 283.4 kB

Release files / pdfpug-0.5.0.tar.gz

Download URL pdfpug-0.5.0.tar.gz
Size 125.5 kB
Tags Source
SHA-256 checksum
How to use checksums
962ebb0df50522b308c33a2f9f9a4bee9e410d3b58037905cd67747fe07ce711
BLAKE2b-256 checksum
How to use checksums
abb0753b89d5c4a80ef5922a0ef8730a1ea92a92697346dd39a95d06b393feb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.4

Release files / pdfpug-0.5.0-py3-none-any.whl

Download URL pdfpug-0.5.0-py3-none-any.whl
Size 157.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de52a91a130e9bfc0268cf6e42d1972a448007823ac3c082f2c406565760d052
BLAKE2b-256 checksum
How to use checksums
5358a657c86814eac1932d94e583d7f89a776bb4a15f8823bd567e1f778e8f82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.4

Security for pdfpug 0.5.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.

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