How smartive/swiss-qr-bill-decoder works
→ Input File → PDF Converter (if PDF) → QR Parser → Data Models → JSON Output
→ Raw QR Data → Structured QR Data Model → Address Model
Important Elements
• Swiss QR Bill Specification
• PDF Processing Libraries
• QR Code Reading Libraries
• Invalid input handling
• QR code detection failures
• Parsing errors
Architectural Notes
• Dual nature (library/binary) with a split view
• Test coverage areas (matching the tests/ directory structure)
• Docker container boundary (based on Dockerfile presence)
Input Processing
• File type detection
• Args parsing
• Initial validation
Core Processing
• PDF to image conversion (when needed)
• QR code location and extraction
• Data parsing and validation
Data Modeling
• QR data structure
• Address information handling
• Specification compliance
Output Generation
• JSON formatting
• Error reporting