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)
8 lines
267 B
Bash
Executable File
8 lines
267 B
Bash
Executable File
#!/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 |