Last Updated:

Xojo FPDF - E-Invoice Module

Jean-Yves POCHEZ Xojo FPDF

🧾 EU-Compliant Electronic Invoicing for the Digital Age

πŸš€ Coming Soon!

The Problem

European e-invoicing mandates are coming:

  • ❌ France: Factur-X mandatory by 2026
  • ❌ Germany: ZUGFeRD for government contracts
  • ❌ EU-wide: EN 16931 standard compliance required
  • ❌ Manual XML: Complex, error-prone, time-consuming

Paper invoices and plain PDFs won’t cut it anymore.

The Solution

The VNS PDF E-Invoice Module generates hybrid PDF/XML invoices that are:

  • βœ… Human-readable (PDF for viewing/printing)
  • βœ… Machine-readable (XML for automated processing)
  • βœ… Legally compliant (Factur-X, ZUGFeRD, EN 16931)
  • βœ… Universally accepted (PDF/A-3 with embedded XML)

One invoice. Two formats. Full compliance.


✨ Supported E-Invoice Standards

Factur-X (France)

Mandatory from 2026 for all French businesses.

Profiles:

  • MINIMUM - Basic invoice data (€10 threshold)
  • BASIC WL - Without lines (summary only)
  • BASIC - With line items
  • EN 16931 - Full European standard
  • EXTENDED - Maximum detail and flexibility

ZUGFeRD (Germany)

Required for government contracts and B2B transactions.

Versions:

  • ZUGFeRD 1.0 - Legacy support
  • ZUGFeRD 2.0 - Current standard
  • ZUGFeRD 2.1 - Latest (aligned with Factur-X)

EN 16931 (EU-Wide)

European standard for e-invoicing semantic data model.

Compliance:

  • CIUS (Core Invoice Usage Specification)
  • Extension support for national requirements
  • Cross-border invoice exchange

πŸ” Digital Signatures

PAdES-B-B and XAdES-BES compliant digital signatures built in:

  • Sign PDF invoices with PAdES-B-B (PDF Advanced Electronic Signatures)
  • Sign XML invoices with XAdES-BES (XML Advanced Electronic Signatures)
  • Adobe Acrobat validated signatures
  • Certificate-based signing with timestamps
  • Multiple signature support

πŸ“Š Barcode Module (Included)

The E-Invoice Module includes the complete Barcode Module for adding scanner-ready barcodes to invoices and documents:

Free barcodes (also in free version):

  • QR Code
  • Code 128

Premium barcodes (included with E-Invoice Module):

  • EAN-13, EAN-8, UPC-A
  • Code 39
  • ITF (Interleaved 2 of 5)
  • Codabar
  • DataMatrix
  • PDF417

All barcodes render as vector graphics for perfect print quality at any resolution. Barcodes can be placed in table cells for professional invoice line items.


πŸ” E-Invoice Conformity Checker

ReadEInvoice - Open any PDF to check Factur-X/ZUGFeRD conformity:

  • Detect Factur-X and ZUGFeRD invoices
  • Identify conformance profile
  • Extract and display invoice data as JSON
  • Validate embedded CII XML

πŸ’Ό Perfect For

French Businesses Comply with the 2026 Factur-X mandate for B2B, B2G, and B2C invoicing.

German Contractors Win government contracts requiring ZUGFeRD-compliant invoicing.

EU Exporters Smooth cross-border trade with EN 16931 standardized invoices.

Accounting Software Build e-invoicing into your SaaS platform for European customers.

ERP Integration Connect legacy ERP systems to modern e-invoicing requirements.

Service Providers Offer compliant invoicing for clients doing business in Europe.


🎯 Key Features

Hybrid PDF/XML

Single file, dual format:

  • PDF for human viewing (visual invoice)
  • XML attached to PDF (machine-readable data)
  • PDF/A-3 compliance for archival
  • Automatic XML embedding

Automatic Validation

Ensure compliance before sending:

  • Schema validation (XSD)
  • Business rule checking
  • Mandatory field verification
  • Amount calculation validation
  • VAT compliance checking

Multi-Currency Support

  • EUR, USD, GBP, CHF, and 150+ currencies
  • Exchange rate embedding
  • Multi-currency line items
  • Automatic currency conversion

Payment Terms

  • Payment due dates
  • Early payment discounts
  • Late payment penalties
  • SEPA payment instructions
  • IBAN/BIC embedding

Tax Handling

  • VAT rates per line item
  • Multiple VAT categories
  • Reverse charge support
  • Exempt transactions
  • Tax breakdown summary

Attachments

Embed supporting documents:

  • Delivery notes
  • Time sheets
  • Contracts
  • Product specifications
  • Images and photos

πŸ“ Simple API

// Create a Factur-X compliant invoice
Dim invoice As New VNSEInvoice()

// Header information
invoice.InvoiceNumber = "INV-2026-001"
invoice.InvoiceDate = New DateTime(2026, 1, 15)
invoice.DueDate = New DateTime(2026, 2, 15)
invoice.Currency = "EUR"

// Seller (your company)
invoice.SellerName = "Acme Corp"
invoice.SellerVATNumber = "FR12345678901"
invoice.SellerAddress = "123 Main St, Paris 75001, France"

// Buyer
invoice.BuyerName = "Client SA"
invoice.BuyerVATNumber = "FR98765432109"
invoice.BuyerAddress = "456 Oak Ave, Lyon 69001, France"

// Line items
invoice.AddLine("Consulting Services - Jan 2026", 10, 150.00, "HRS", 20.0)
invoice.AddLine("Software License - Annual", 1, 1200.00, "EA", 20.0)

// Payment terms
invoice.PaymentTerms = "Net 30 days"
invoice.PaymentMeans = "SEPA Transfer"
invoice.PaymentIBAN = "FR7612345678901234567890123"

// Generate hybrid PDF with embedded XML
Dim pdf As PDFDocument = invoice.ToPDF(VNSEInvoice.ProfileEN16931)
pdf.Save(invoiceFile)

Result: A compliant Factur-X/EN 16931 invoice with embedded XML, ready to send.


πŸ”§ Pure Xojo Implementation

Platform Independent

  • Works on Desktop, Web, iOS, Console
  • No external XML libraries
  • No web service dependencies
  • Full source code included

Standards Compliant

  • PDF/A-3 for archival
  • XML Schema (XSD) validation
  • Schematron business rules
  • OASIS UBL support
  • CII (Cross Industry Invoice) syntax

πŸ’‘ Real-World Example

Monthly Service Invoice with Multiple VAT Rates:

Dim invoice As New VNSEInvoice()

// Invoice details
invoice.InvoiceNumber = "SRV-2026-042"
invoice.InvoiceDate = DateTime.Now
invoice.DueDate = DateTime.Now.AddDays(30)

// Seller
invoice.SellerName = "Tech Solutions SARL"
invoice.SellerVATNumber = "FR82123456789"
invoice.SellerEmail = ""
invoice.SellerPhone = "+33 1 23 45 67 89"

// Buyer
invoice.BuyerName = "Retail Store SAS"
invoice.BuyerVATNumber = "FR91987654321"
invoice.BuyerReference = "PO-2026-128"

// Services - Standard VAT (20%)
invoice.AddLine("Web Hosting - Premium Plan", 1, 99.00, "MTH", 20.0)
invoice.AddLine("SSL Certificate", 1, 50.00, "EA", 20.0)
invoice.AddLine("Domain Registration (.fr)", 1, 15.00, "EA", 20.0)

// Digital services - Reduced VAT (10%)
invoice.AddLine("E-book: Web Security Guide", 5, 12.00, "EA", 10.0)

// Exempt services (0% VAT)
invoice.AddLine("Training Services", 2, 500.00, "DAY", 0.0)

// Payment info
invoice.PaymentMeans = "SEPA Direct Debit"
invoice.PaymentIBAN = "FR7630006000011234567890189"
invoice.PaymentBIC = "BNPAFRPP"

// Discount for early payment
invoice.AddPaymentDiscount(2.0, "2% discount if paid within 10 days")

// Generate with EN 16931 profile
Dim pdf As PDFDocument = invoice.ToPDF(VNSEInvoice.ProfileEN16931)

// Validate before sending
If invoice.Validate() Then
  pdf.Save(invoiceFile)
  // Send to customer
Else
  MessageBox("Validation errors: " + invoice.GetValidationErrors())
End If

βœ… What You Get

  • βœ… Full source code - VNSEInvoicePremium.xojo_code
  • βœ… All e-invoice profiles - Factur-X, ZUGFeRD, EN 16931
  • βœ… XML generation - Automatic CII/UBL XML creation
  • βœ… Schema validation - XSD and Schematron checking
  • βœ… PDF/A-3 integration - Hybrid PDF with embedded XML
  • βœ… Multi-currency - 150+ currencies supported
  • βœ… Tax handling - VAT, exempt, reverse charge
  • βœ… All platforms - Desktop, Web, iOS, Console
  • βœ… Documentation - Full compliance guide with examples
  • βœ… 12 months free updates - Compatible with future standards

πŸ’° Pricing

One-Time Purchase: €50

Special Offer: Buy 2, Get 1 Free! Combine E-Invoice Module with any other modules (Encryption, Tables, Zlib, HTML/Markdown, PDF/A, Forms).

What’s Included:

  • Complete E-Invoice source code
  • Digital Signatures implementation (PAdES-B-B + XAdES-BES)
  • Barcode Module (QR, Code128, EAN-13, EAN-8, UPC-A, Code 39, ITF, Codabar, DataMatrix, PDF417)
  • ReadEInvoice conformity checker
  • Complete documentation and compliance guide
  • Installation guide
  • 12 months free updates
  • Lifetime license

πŸ’³ Payment & Delivery

Payment: PayPal only (secure payment processing)

Delivery: Manual process - please allow 2-3 business days after payment for delivery via email.

You will receive:

  • E-Invoice source code files (.xojo_code)
  • Digital Signatures source code
  • Barcode Module source code
  • ReadEInvoice checker source code
  • Complete documentation and examples
  • Installation guide
  • License information

πŸ›’ Purchase

PayPal payment button below. After payment, you’ll receive an email confirmation, and your module will be delivered within 2-3 business days.

Purchase E-Invoice Module - €50


πŸ“Š Compliance Timeline

CountryStandardMandate DateStatus
FranceFactur-X2026-2027⚠️ Phased rollout
GermanyZUGFeRDOptionalβœ… Gov contracts
ItalyFatturaPA2019 (active)βœ… Mandatory
SpainFacturae2027 (planned)πŸ“‹ Upcoming
EUEN 169312025 (active)βœ… Cross-border

Β 


❓ Frequently Asked Questions

Q: When will this be available? A: Estimated Q3-Q4 2026, ahead of the France 2027 full mandate.

Q: Will it support my country’s specific requirements? A: Yes! EN 16931 is the base, with country-specific extensions (CIUS) planned for France, Germany, Italy, Spain.

Q: Can I import data from my accounting system? A: Yes! The module accepts structured data (JSON, CSV, database) for bulk invoice generation.

Q: What if e-invoice standards change? A: 12 months free updates include compliance changes. After that, updates available at nominal cost.

Q: Will it validate invoices before sending? A: Yes! Built-in XSD and Schematron validation catches errors before delivery.

Q: Can I use custom invoice templates? A: Yes! The visual PDF is fully customizable while maintaining XML compliance.

Q: What about receiving e-invoices? A: Version 1.0 focuses on generation. Parsing/validation of received e-invoices planned for v2.0.

Q: How does this integrate with the File Attachments feature? A: Seamlessly! E-Invoice module uses the existing file attachment system to embed XML in PDF/A-3.


🎯 Use Case Examples

Software Subscription Monthly SaaS billing with prorated charges, multi-currency support, automatic XML generation.

Freelance Consulting Time-based billing with hourly rates, expense reimbursements, client PO references, SEPA payment.

E-Commerce Product sales with line item details, shipping charges, multiple VAT rates, payment gateway integration.

Professional Services Legal, accounting, medical services with service codes, exempt services, referrer information.

Cross-Border Sales EU-wide invoicing with currency conversion, reverse charge VAT, customs information.


πŸ“š Recommended Combinations

Complete Compliance Stack:

  • E-Invoice Module (€50) - Generate compliant invoices with signatures and barcodes
  • PDF/A Module (€50) - Archival compliance (when available)
  • Encryption Module (€50) - Secure sensitive financial data
  • Buy 2 Get 1 Free = €100 total (save €50!)

Full Business Suite:

  • E-Invoice Module (€50) - Invoicing with digital signatures
  • HTML/Markdown Module (€50) - Reports and documentation
  • Table Module (€50) - Professional data tables
  • Buy 2 Get 1 Free = €100 total (save €50!)

Bundle & Save: Buy 2, get 1 free! View All Modules β†’