Commit graph

3 commits

Author SHA1 Message Date
PentaFrame-Development
528c039017 fix: resolve ruff linting errors in docs_generator
- Remove unused imports: unicodedata, TA_RIGHT, Table, PageBreak, canvas, CIDFont, Template
- Remove unused variables: available_width, header_style in _create_complex_table
- Replace bare except clauses with except Exception
- Remove unused RGBColor and Inches imports from docx.shared
2025-12-11 12:44:06 +01:00
PentaFrame-Development
fb3fedbbcf fix(docs-generator): Add multi-language font support and reportlab dependency
- Add reportlab>=4.4.1 to dependencies (pyproject.toml)
- Add fonts-freefont-ttf and fonts-noto-cjk to Dockerfile for Unicode support
- Implement automatic CJK font detection and switching:
  - Latin content uses user-selected font (Helvetica, Times-Roman, Courier)
  - CJK/Arabic/Hebrew/Thai/Hindi content auto-switches to STSong-Light CID font
- Add documentation about automatic font switching behavior
- Fix frontend null safety in use-selelct-filters.ts
- Add DocsGenerator component to agent constants

Fixes missing glyphs (black squares) issue for Chinese, Japanese, Korean,
Arabic, Hebrew, Thai, and Hindi characters in generated PDFs.
2025-12-11 11:29:22 +01:00
PentaFrame
ab74f6a5c9 feat: Add Docs Generator component for PDF/DOCX/TXT document generation
- Add new Docs Generator agent component (docs_generator.py)
- Support markdown-to-PDF conversion with tables, lists, code blocks
- Add PDF download button component for chat interface
- Add component form and configuration UI
- Add translations for all supported languages
- Add component documentation guide
- Support multiple output formats: PDF, DOCX, TXT
- Configurable styling, logo, orientaton..
- Download button integration with Message component
2025-12-09 17:14:07 +01:00