Skip to main content

Create PDFs from scratch using simple, easy to use APIs

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdfpug-0.5.0.tar.gz (125.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfpug-0.5.0-py3-none-any.whl (157.9 kB view details)

Uploaded Python 3

File details

Details for the file pdfpug-0.5.0.tar.gz.

File metadata

  • Download URL: pdfpug-0.5.0.tar.gz
  • Upload date:
  • Size: 125.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pdfpug-0.5.0.tar.gz
Algorithm Hash digest
SHA256 962ebb0df50522b308c33a2f9f9a4bee9e410d3b58037905cd67747fe07ce711
MD5 6c70ee38c54f13b929f224a8ee298fa3
BLAKE2b-256 abb0753b89d5c4a80ef5922a0ef8730a1ea92a92697346dd39a95d06b393feb1

See more details on using hashes here.

File details

Details for the file pdfpug-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: pdfpug-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 157.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pdfpug-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de52a91a130e9bfc0268cf6e42d1972a448007823ac3c082f2c406565760d052
MD5 864c0be1d931e9aacc50f74ba5bf081e
BLAKE2b-256 5358a657c86814eac1932d94e583d7f89a776bb4a15f8823bd567e1f778e8f82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page