{"endpoints":{"/":"GET - API documentation","/convert":"POST - Convert HTML to PDF","/health":"GET - Health check","/version":"GET - API version and update info"},"service":"HTML-to-PDF API","updated_at":"2026-01-06T00:00:00Z","usage":{"body":{"base_url":"Optional base URL for resolving relative URLs","css":"Optional CSS styles as string (will be injected)","filename":"Optional output filename (default: document.pdf)","height":"Optional: Custom height (e.g., \"800px\", \"29.7cm\")","html":"HTML content as string (required)","margin":"Optional: Page margins (default: \"0\")","page_size":"Optional: \"A4\" (default), \"Letter\", \"Legal\", \"A3\", etc. or \"auto\"","viewport_height":"Optional: Browser viewport height in pixels (default: 1080)","viewport_width":"Optional: Browser viewport width in pixels (default: 1920)","width":"Optional: Custom width (e.g., \"1200px\", \"21cm\")"},"content-type":"application/json","endpoint":"/convert","example":{"curl":"curl -X POST https://your-api.com/convert -H \"Content-Type: application/json\" -H \"X-API-Key: your-key\" -d '{\"html\": \"<div style=\\\"maxheight:100px\\\">Broken HTML!</div>\", \"filename\": \"output.pdf\"}' --output output.pdf","description":"Convert HTML with errors (works perfectly!)"},"improvements":["\u2705 Renders HTML exactly like Chrome browser","\u2705 Handles broken HTML gracefully - no more syntax errors!","\u2705 Automatically fixes malformed DOCTYPE, unclosed tags, etc.","\u2705 Perfect for email templates with errors","\u2705 Supports all CSS that works in browsers","\u2705 Handles JavaScript-generated content","\u2705 External resources load correctly"],"method":"POST"},"version":"2.1.0"}
