Tiny PDF writer
Project description
PDF·je (noun) Dutch for ‘small PDF’
Tiny library for writing simple PDFs. Experimental.
Currently under development. Leave a ⭐️ on GitHub if you’re interested how this develops!
Why?
The most popular libraries for writing PDFs are quite old and inspired by Java and PHP. PDFje aims to be a modern, Pythonic library with a more declarative API.
How does it work?
>>> from pdfje import Document, Page, Text
>>> pdf.Document([
... Page([Text("Hello", at=(200, 700)), Text("World", at=(300, 670))]),
... Page(),
... Page([Text("This is the last page!", at=(300, 600))]),
...
... ]).to_path('hello.pdf')
See the docs for a complete overview.
Installation
It’s available on PyPI.
pip install pdfje
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
pdfje-0.1.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
pdfje-0.1.0-py3-none-any.whl
(6.0 kB
view hashes)