DANFSe layout and technical specifications
masterWhen generating DANFSe PDFs, keep the following layout rules in mind:
- Format: Generated in A4 portrait, single page, including the national public consultation QR Code.
- Missing Data: Fields absent in the XML are printed with a dash (
-). - Taxation: The Federal Taxation line is omitted for periods after 2026.
- IBS/CBS Logic: The IBS/CBS block prioritizes consolidated values from
NFSe/infNFSe/IBSCBS. It usesinfDPS/IBSCBSas a fallback for data only provided in the DPS. - Fonts: The engine uses standard fonts like Arial, Helvetica, or Times. While NT 008 mentions Microsoft Sans Serif, this package uses compatible standard fonts to preserve visual hierarchy and minimum sizes. For strict font compliance, the integrator must provide a licensed font and a compatible registration mechanism for the legacy FPDF engine.