Found a bug: if you submit a PDF that contains a zero-byte page (corrupted PDF, essentially), the API returns a 500 internal server error instead of a meaningful error message.
Expected: 400 with a message like “Invalid PDF: page 3 contains no data”
Actual: 500 with generic “Internal Server Error”
curl -X POST https://api.qomplement.com/v1/parse \
-H "Authorization: Bearer $API_KEY" \
-F "file=@corrupted_doc.pdf" \
-F "template_id=inv_standard"
# Returns: {"error": "Internal Server Error", "status": 500}
Reproducible 100% of the time with the attached test PDF. Happy to share the file if helpful.