xPdf API Documentation
High-performance cloud-native PDF generation API.
Overview
xPdf provides a RESTful API for generating PDF documents with full PDF/A and PDF/UA compliance. Built on Rust and deployed globally on Cloudflare Workers.
Documentation
| Document | Description |
|---|---|
| API Reference | Complete JSON schema, element types, and parameters |
| Authentication | V1/V3 token-based authentication flow |
Quick Start
Endpoint: POST /api/v3/label
Headers:
Authorization: Bearer <YOUR_TOKEN>
Content-Type: application/jsonMinimal Request:
json
{
"pages": [
{
"width": 100,
"height": 150,
"elements": [
{
"type": "text",
"x": 10,
"y": 20,
"content": "Hello World"
}
]
}
]
}Response: application/pdf binary data.