Skip to Content
Back to Portfolio

invoice-pdf-generator

Author
RamonRiosJr
Repository Author

Coqui Cloud Invoice Generator

A lightweight C++ utility to programmatically generate professional PDF invoices. Built with libharu, this tool is designed to integrate with backend systems (like Odoo or custom time-tracking databases) to automate billing workflows without requiring heavy GUI applications.

Features

  • Vector Graphics: Generates high-quality, printable PDFs.
  • Lightweight: No Java or Python interpreter overhead; runs instantly as a compiled binary.
  • Customizable: Easy to modify C++ structs to accept data from JSON, CSV, or SQL inputs.
  • Automated Calculations: Automatically computes line item totals and grand totals to prevent math errors.

Prerequisites

  • OS: Ubuntu / Debian
  • Library: libhpdf (LibHaru)

bash sudo apt update sudo apt install libhpdf-dev

Compilation

Bash

g++ -std=c++17 invoice_gen.cpp -o invoice_gen -lhpdf

Usage

Run the tool to generate a standard invoice in the current directory: Bash

./invoice_gen

Output: invoice.pdf

Customization

To adapt this for production:

Modify the InvoiceItem struct in invoice_gen.cpp.

Connect the input vectors to your SQL database or JSON parser.

Update the COMPANY_NAME constants.

Maintained By

Coqui Cloud - IT Solutions & Custom Software

Recent Activity

Revise README for Coqui Cloud Invoice Generator2026-01-26
Ramon Rios
Add invoice generator using LibHaru2026-01-26
Ramon Rios
Add MIT License to the project2026-01-26
Ramon Rios

About Ramon Rios Jr's Tech Stack

As a Senior Systems Architect and Full Stack Developer, I specialize in building scalable, enterprise-grade applications. My expertise spans across modern backend frameworks using Python, comprehensive ERP deployments with Odoo, and highly interactive frontend architectures. The open-source GitHub repositories listed above demonstrate my proficiency in API development, database optimization, system integrations, and automation. Whether crafting custom business logic or designing sleek glassmorphic user interfaces, I am committed to delivering high-performance software solutions.