Zero-retention HTML to PDF conversion
Full LLM thinking from the 4-phase benchmark pipeline.
{
"service_type": "rest_api",
"base_url": "https://xeropdf.com",
"auth_method": "api_key_header",
"auth_config": {
"header": "Authorization",
"prefix": "Bearer"
},
"endpoints": [
{
"path": "/",
"method": "POST",
"purpose": "Convert HTML to PDF with zero retention",
"params": {
"html": {
"type": "string",
"required": true
}
},
"response_format": "binary",
"is_primary": true
}
],
"pricing_model": {
"type": "unknown",
"details": {},
"free_tier": null,
"paid_tiers": []
},
"rate_limits": {
"rpm": null,
"tpm": null,
"daily": null,
"concurrent": null
},
"capabilities": [
"html_to_pdf",
"zero_retention"
],
"agent_readiness": {
"supports_x402": false,
"supports_streaming": false,
"has_sandbox": false,
"sdks": [],
"agent_auth_methods": [
"api_key"
]
}
}```json
{
"tests": [
{
"name": "connectivity_root_get",
"endpoint": "/",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Base URL responds (landing page or service info) confirming host reachability",
"metrics": ["latency", "status_code"],
"validation": {"type": "any"}
},
{
"name": "html_to_pdf_happy_path",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer ${API_KEY}", "Content-Type": "application/json", "Accept": "application/pdf"},
"payload": {"html": "<html><body><h1>Hello</h1><p>Zero retention test</p></body></html>"},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns a valid PDF binary (magic bytes %PDF)",
"metrics": ["latency", "status_code", "response_size"],
"validation": {"type": "binary", "content_type_contains": "pdf", "magic_bytes": "%PDF"}
},
{
"name": "html_to_pdf_complex_document",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer ${API_KEY}", "Content-Type": "application/json", "Accept": "application/pdf"},
"payload": {"html": "<html><head><style>body{font-family:Arial}h1{color:#333}</style></head><body><h1>Report</h1><table border='1'><tr><td>Row1</td><td>Data</td></tr></table><img src='https://via.placeholder.com/50' alt='img'/><script>document.body.append('x')</script></body></html>"},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Renders complex HTML with CSS, table, and image into a multi-element PDF; verifies JS is not required to succeed",
"metrics": ["latency", "status_code", "response_size"],
"validation": {"type": "binary", "content_type_contains": "pdf", "magic_bytes": "%PDF"}
},
{
"name": "html_to_pdf_unicode_content",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer ${API_KEY}", "Content-Type": "application/json"},
"payload": {"html": "<html><body><p>Unicode: 日本語 émojis 🎉 cyrillic Привет</p></body></html>"},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Handles UTF-8 content without corrupting the output PDF",
"metrics": ["latency", "status_code", "response_size"],
"validation": {"type": "binary", "content_type_contains": "pdf"}
},
{
"name": "html_missing_required_field",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer ${API_KEY}", "Content-Type": "application/json"},
"payload": {"html": ""},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects empty/missing required html param with a 400/422 structured error",
"metrics": ["latency", "status_code"],
"validation": {"type": "string"}
},
{
"name": "html_missing_param_entirely",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer ${API_KEY}", "Content-Type": "application/json"},
"payload": {"other_field": "nothing here"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects payload without required html field with 400/422",
"metrics": ["latency", "status_code"],
"validation": {"type": "string"}
},
{
"name": "malformed_json_body",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer ${API_KEY}", "Content-Type": "application/json"},
"payload": "not-a-json-object",
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects malformed JSON body with 400",
"metrics": ["latency", "status_code"],
"validation": {"type": "string"}
},
{
"name": "auth_missing_credentials",
"endpoint": "/",
"method": "POST",
"headers": {"Content-Type": "application/json"},
"payload": {"html": "<html><body>auth test</body></html>"},
"expected_status": 401,
"intent": "auth",
"expected_behavior": "Rejects request missing Authorization header with 401/403",
"metrics": ["latency", "status_code"],
"validation": {"type": "string"}
},
{
"name": "auth_invalid_token",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer invalid-token-0000000000", "Content-Type": "application/json"},
"payload": {"html": "<html><body>auth test</body></html>"},
"expected_status": 401,
"intent": "auth",
"expected_behavior": "Rejects invalid bearer token with 401/403, no PDF returned",
"metrics": ["latency", "status_code"],
"validation": {"type": "string"}
},
{
"name": "payload_size_large_html",
"endpoint": "/",
"method": "POST",
"headers": {"Authorization": "Bearer ${API_KEY}", "Content-Type": "application/0/9 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| connectivity_root_get | GET / | None | 5010ms |
| html_to_pdf_happy_path | POST / | None | 5008ms |
| html_to_pdf_complex_document | POST / | None | 5007ms |
| html_to_pdf_unicode_content | POST / | None | 5008ms |
| html_missing_required_field | POST / | None | 5006ms |
| html_missing_param_entirely | POST / | None | 5010ms |
| malformed_json_body | POST / | None | 5009ms |
| auth_missing_credentials | POST / | None | 5009ms |
| auth_invalid_token | POST / | None | 5008ms |
{"model": "deepseek", "data": {"overall": 0, "dimensions": {"token_efficiency": 0.0, "first_try_success": 0.0, "response_parseability": 0.0, "error_clarity": 0.0, "doc_quality": 0.0, "auth_simplicity": 0.0, "latency": 0.0, "consistency": 0.0}, "pricing_normalized": {"cost_per_1k_requests": null, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": null, "estimated_monthly_cost_light": null, "estimated_monthly_cost_heavy": null}, "issues": [{"severity": "critical", "detail": "Benchmark used wrong base URL \u2014 got HTML instead of JSON API responses. Every test returned null status_code with ~5000ms latency and null response_preview, indicating no valid JSON API response was received at the configured endpoint. This is a configuration error in the benchmark, not a service defect.", "endpoint": "/"}, {"severity": "high", "detail": "All 9 tests (happy_path, validation, auth) returned null status_code and no response body, producing zero usable signals about API behavior.", "endpoint": "/"}], "recommendations": ["Re-run benchmark with correct API base URL from the vendor's guide", "Verify the API host is reachable and returns JSON (or binary PDF) rather than HTML", "Confirm the endpoint path/port is correct (e.g. api.<vendor>.com vs www.<vendor>.com)", "Validate that the benchmark HTTP client is not timing out or being redirected to a marketing/landing page", "Once correct URL is confirmed, re-test connectivity, happy-path PDF conversion, validation errors (400), and auth (401) behaviors"]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowl.world/service/zero-retention-pdf">
<img src="https://prowl.world/badge/zero-retention-pdf.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard