create-invoice

command module
v0.0.0-...-72a2b7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README ¶

create-invoice

Build Status License

🧾 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

pdf screen pdf screen dev

✔ Todo

  • multiline table cells

Documentation ¶

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL