Commit Graph

3 Commits

Author SHA1 Message Date
CM Consultor
91f49c9367 fix: remove apt-get install of nonexistent libgl1-mesa-glx (Debian Trixie)
- libgl1-mesa-glx foi removido no Debian Trixie (python:3.12-slim atual)
- Nenhuma dependência do sistema é necessária — pypdf e Pillow rodam
  com wheels manylinux que já embutem as libs compartilhadas
2026-08-09 02:46:38 +00:00
CM Consultor
f16c53bd4c feat: add API Key authentication, Dockerfile, and docker-compose
- core/auth.py: API Key auth via header X-API-Key (env PDFTOOLKIT_API_KEY)
  - Modo dev: sem chave configurada → acesso livre
  - Modo produção: exige chave, retorna 401/403
- api.py: endpoints protegidos com Depends(_auth_required)
  - /health e / permanecem públicos
- Dockerfile: multi-stage (base → api → web)
- docker-compose.yml: api + web com healthcheck, volumes e rede
- .env.example: template de variáveis de ambiente
- README.md: seções de autenticação e Docker
2026-08-09 02:38:19 +00:00
CM Consultor
84d4a1eab5 feat: initial release — pdf-toolkit v1.0.0
Core operations:
- Compress PDF (3 presets: screen, ebook, printer, prepress)
- PDF/A detection and conversion to regular PDF
- Compress while preserving PDF/A structure
- Merge multiple PDFs
- Split/extract pages by range
- Rotate pages
- Extract text and images

Interface:
- Streamlit web GUI (app.py)
- FastAPI REST API with auto OpenAPI docs (api.py)

Docs:
- README.md, ARCHITECTURE.md, API.md
- Unit tests (15/15 passing)
2026-08-09 02:15:22 +00:00