PDF to HTML Parser v0.1.0

API Reference

POST/convert
Multipart upload — returns reflowable paragraph HTML matching the peer-review-assistant Text view.
curl -F file=@paper.pdf \
  http://localhost:8000/convert

→ { "filename": "paper.pdf",
    "page_count": 12,
    "html": "<section class=\"pdf-page\">…" }
POST/extract-text
Multipart upload — per-page plain text via pypdf.
curl -F file=@paper.pdf \
  http://localhost:8000/extract-text

→ { "filename": "paper.pdf",
    "page_count": 12,
    "pages": [ { "page": 1, "text": "…" }, … ] }
GET/health
Liveness probe.
curl http://localhost:8000/health
→ { "status": "ok" }

Try it — upload a PDF

No file selected
Upload a PDF above to see the converted HTML here.