Skip to content

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

DocumentDescription
API ReferenceComplete JSON schema, element types, and parameters
AuthenticationV1/V3 token-based authentication flow

Quick Start

Endpoint: POST /api/v3/label

Headers:

Authorization: Bearer <YOUR_TOKEN>
Content-Type: application/json

Minimal Request:

json
{
  "pages": [
    {
      "width": 100,
      "height": 150,
      "elements": [
        {
          "type": "text",
          "x": 10,
          "y": 20,
          "content": "Hello World"
        }
      ]
    }
  ]
}

Response: application/pdf binary data.