Skip to main content

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

Project description

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

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

PDF Generator with TextX-0.0.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

PDF_Generator_with_TextX-0.0.3-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file PDF Generator with TextX-0.0.3.tar.gz.

File metadata

  • Download URL: PDF Generator with TextX-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for PDF Generator with TextX-0.0.3.tar.gz
Algorithm Hash digest
SHA256 485191c37469340357cf089765c4178fdd53ea60d03a4a0bf7f6a5f75d5fc5e8
MD5 0e0a90f3c8f3ce8cbdb5bf17df60557c
BLAKE2b-256 240c10d498cfc5069ffdb16b1b796e9ddcabd80724ca363e6e7969f398f8a6f8

See more details on using hashes here.

File details

Details for the file PDF_Generator_with_TextX-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: PDF_Generator_with_TextX-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for PDF_Generator_with_TextX-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e96a6889ee48ed534cfbecf89520b9ac4cfe7a451ffbdbc96b554a79602fb124
MD5 006668d84dbcb64d2a43ffbdc97585d9
BLAKE2b-256 a2aa4a800c74c05666d912e49750a59aa0ee5c821ba53bb59a93ab7cfd9da19a

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