Brazil Fiscal Report
Python library for generating Brazilian auxiliary fiscal documents in PDF from XML documents.
Supported Documents
| Document | Description | XML Source |
|---|---|---|
| DANFE | Documento Auxiliar da Nota Fiscal Eletrônica | NF-e |
| DACCe | Documento Auxiliar da Carta de Correção Eletrônica | CC-e |
| DACTE | Documento Auxiliar do Conhecimento de Transporte Eletrônico | CT-e |
| DAMDFE | Documento Auxiliar do Manifesto Eletrônico de Documentos Fiscais | MDF-e |
Usage Modes
1. Python Code
For full customization and integration, use the library directly in Python. Configure margins, fonts, receipt positions, and more for each document type.
2. CLI (Command Line)
For quick PDF generation from the terminal with a simple config.yaml file.
3. Try it Online
Upload your fiscal XML and get the PDF instantly — no installation needed.
Dependencies
- FPDF2 - PDF creation library for Python
- phonenumbers - Phone number formatting
- python-barcode - Barcode generation
- qrcode - QR code generation (required for DACTE and DAMDFE)