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)
This commit is contained in:
CM Consultor
2026-08-09 02:15:22 +00:00
commit 84d4a1eab5
17 changed files with 1998 additions and 0 deletions

8
scripts/run-api.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Inicia a API REST do pdf-toolkit
set -e
cd "$(dirname "$0")/.."
echo "🔌 pdf-toolkit — API"
echo " Swagger: http://localhost:8555/docs"
echo " Redoc: http://localhost:8555/redoc"
exec uvicorn api:app --host 0.0.0.0 --port 8555 --reload

7
scripts/run-web.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Inicia o pdf-toolkit via Streamlit
set -e
cd "$(dirname "$0")/.."
echo "🌐 pdf-toolkit — Streamlit"
echo " Acesse: http://localhost:8550"
exec streamlit run app.py --server.port 8550