Android application built with Java that generates invoice PDFs based on a predefined layout and allows sharing them directly via apps like WhatsApp.
- Generate invoice PDFs using a fixed professional layout
- Input key invoice data:
- Invoice date
- Invoice number (NCF)
- Description
- Total amount
- Export PDF to device storage
- Share generated invoices via external apps (WhatsApp, etc.)
- Custom font rendering (Times New Roman)
- Java
- Android SDK (API 24+)
- PdfDocument (Canvas-based rendering)
- FileProvider (secure file sharing)
- XML layouts
com.ctorres.invoice ├── MainActivity └── model └── InvoiceData
- User fills the form
- Application creates an InvoiceData object
- PDF is generated using Canvas drawing
- File is saved locally
- Share intent is triggered
The document is built manually using Android Canvas:
- Fixed coordinates for layout precision
- Structured sections:
- Header
- Issuer information
- Client details
- Description
- Total
- Signature
- Consistent typography using embedded fonts
Build → Build APK(s)
- Transfer APK to device and install
or - Run directly via Android Studio with USB debugging
This project focuses on building a practical and usable solution with full control over PDF generation and layout.