Skip to main content

Generating PDF file using a DSL

Team

  • Nikola Zejak E2 140/2021
  • Milan Lukić E2 77/2021
  • Milana Tucakov E2 138/2021

General Idea

Developing a DSL for generating PDF files. It could be used in other apps as a tool for generating dynamic reports, contracts, invoices etc.

Features

Must have

  • PDF text elements (Heading, text block...)
  • Font customization
  • Including DSL features into Python module
  • Images
  • Tabels

Nice to have

  • PDF Templates (for contracts, reports...)
  • Text customization (Size, Bolded, Underline, Italic, Alignment)

Could have

  • VSCode plugin

Create virtual environment

python3 -m venv /path/to/new/virtual/environment

Start virtual environment

Mac:

source NAME_OF_MY_VIRTUAL_ENVIRONMENT/bin/activate

Windows:

NAME_OF_MY_VIRTUAL_ENVIRONMENT\Scripts\activate

Install requirements from requirements.txt

pip install requirements.txt

Generate pdf and html file

Mac users:

cd src && python3 main.py

Windows users:

cd src && python main.py

Installing from a local src tree

python3 -m pip install -e .

Installing from local archives

python3 -m pip install <path>

Installing from PyPI

python3 -m pip install "PDF-Generator-with-TextX==version_of_project"

VS Code language support extension

There is language support extension for our new DSL .tff files in VS Code Marketplace. You can search for TFF FTNTeam3 extension.

extension

Release files for PDF-Generator-with-TextX 0.0.3

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

Source distribution (sdist)

Source distribution for PDF-Generator-with-TextX 0.0.3
File Size Uploaded
PDF Generator with TextX-0.0.3.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PDF-Generator-with-TextX 0.0.3
File Interpreter ABI Platform
PDF_Generator_with_TextX-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 6.9 kB

Release files / PDF Generator with TextX-0.0.3.tar.gz

Download URL PDF Generator with TextX-0.0.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
485191c37469340357cf089765c4178fdd53ea60d03a4a0bf7f6a5f75d5fc5e8
BLAKE2b-256 checksum
How to use checksums
240c10d498cfc5069ffdb16b1b796e9ddcabd80724ca363e6e7969f398f8a6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / PDF_Generator_with_TextX-0.0.3-py2.py3-none-any.whl

Download URL PDF_Generator_with_TextX-0.0.3-py2.py3-none-any.whl
Size 3.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e96a6889ee48ed534cfbecf89520b9ac4cfe7a451ffbdbc96b554a79602fb124
BLAKE2b-256 checksum
How to use checksums
a2aa4a800c74c05666d912e49750a59aa0ee5c821ba53bb59a93ab7cfd9da19a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

3 release files

0.0.1

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