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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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