{
"input": "https://example.com/page.html",
"page_size": "A4",
"margin": "1cm"
}
curl -X POST https://api.ringbee.dev/v1/document/html-to-pdf \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@page.html" \
-F "page_size=A4" \
-F "margin=1cm"
{
"id": "job_abc123",
"status": "pending"
}{
"error": "<string>"
}{
"error": "<string>"
}Document
HTML to PDF
Convert an HTML file to PDF
POST
/
v1
/
document
/
html-to-pdf
{
"input": "https://example.com/page.html",
"page_size": "A4",
"margin": "1cm"
}
curl -X POST https://api.ringbee.dev/v1/document/html-to-pdf \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@page.html" \
-F "page_size=A4" \
-F "margin=1cm"
{
"id": "job_abc123",
"status": "pending"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"input": "https://example.com/page.html",
"page_size": "A4",
"margin": "1cm"
}
curl -X POST https://api.ringbee.dev/v1/document/html-to-pdf \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@page.html" \
-F "page_size=A4" \
-F "margin=1cm"
| Param | Type | Description |
|---|---|---|
| page_size | string | Output page size (e.g., “A4”, “Letter”) |
| margin | string | Page margin (e.g., “1cm”, “0.5in”) |
Authorizations
Body
application/jsonmultipart/form-data