API server to generate PDF from HTML.
- Python 3.9+
make docker-build
make docker-run
python -m venv .venv
source .venv/bin/activate
pip install --no-cache-dir --upgrade -r requirements.txt
playwright install --with-deps # chromium, firefox, webkit, etc.
make run
Running as a background process:
nohup .venv/bin/uvicorn htmltopdf:app --host=0.0.0.0 --port=38000 > /dev/null 2>&1 &
- To avoid zombie processes
- Suggested configuration - Playwright
- Docker - Playwright
- Playwright를 사용해서 HTML 페이지를 PDF로 만들기