create-invoice

🧾 About this app..
A simple tool which generates basic pdf invoice documents. The application has a predefined layout in which you can fill your own data by customizing the template.txt and data.txt files. When executing the tool, it will read these input files and build an invoice pdf document.
âš™ How to use
I used the gofpdf library to build this tool. The Layout is defined by multiple different cell objects within the pdf (see sample below), which are filled with the data provided by the input files.
The input elements in these files are divided from one another by \n;\n, and so can be easily customized with any basic text editor.
The template.txt file contains the inputs, which should be very consistant and mostly never change for a single user while the data.txt file contains all inputs for each individual invoice like reference number and date. When you decide to change and run the code by yourself you can toggle the devMode const, which enables the borders around each cell in the output file.
📌 Sample

✔ Todo