Barcode Generator for Invoices
Project Information
- Category: Tools & Modules
- Role: Backend Developer
- Technology: .NET Core MVC, SQL Server, ZXing.Net, iTextSharp
- Project URL: Internal Tool
Project Overview
A .NET Core MVC utility that turns invoice numbers into scannable barcodes, so invoices can be looked up or verified with a scanner instead of manual entry. Each barcode is generated from an invoice number, labeled with the readable number underneath, and can be exported as a print-ready PDF — either one at a time or as a full batch.
Barcode images are generated using the ZXing.Net library, and the PDF export pipeline
is built with iTextSharp (iTextSharp.text and
iTextSharp.text.pdf), which handles laying out each barcode and its label onto a
document that's ready to print directly onto invoices or labels.
Key Features
Barcode Generation
GenerateBarcode — converts a given invoice number into a scannable barcode.
Barcode Image Rendering
GenerateBarcodeImage — renders the barcode as an image using ZXing.Net for
display or embedding.
Human-readable Labeling
AddTextBelowBarcode — prints the invoice number as text beneath the barcode so
it's readable without a scanner too.
Batch PDF Export
ExportBarcodesToPDF — lays out one or many barcodes onto a print-ready PDF
using iTextSharp.
Built as a supporting module for the invoicing side of the stack — the same kind of barcode/lookup problem that comes up in the POS and VAT Management systems — so invoice numbers can be verified with a quick scan instead of typing them in by hand.