Files
diarization-ui/app.py
wb 4a81ef3673 fix(pdf): sanitize text to Latin-1 before fpdf2, absorb per-line errors
The fpdf2 built-in Helvetica font is Latin-1 only; characters outside
that range caused "Not enough horizontal space" errors which silently
aborted PDF generation. Fix:
- _l1() helper encodes/decodes via latin-1 with replacement before any
  multi_cell call
- _cell() wrapper catches per-line render errors so one bad character
  doesn't drop the whole document
- PDF generation errors are now logged as warnings instead of swallowed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 15:56:38 +02:00

120 KiB