Zero Retention PDF Logo

Zero Retention PDF

Credits: --
V1.0 Stable Release

Zero Retention PDF
Engine.

Privacy-first HTML to PDF and screenshot rendering for teams that handle invoices, records, statements, and other sensitive documents. Render in-memory and return output directly to your app.

Available on:

RapidAPI Public APIs api APIs.guru
lock_person

The Zero Retention PDF Shield

Designed for privacy-sensitive fintech and healthtech workflows. HTML payloads and output buffers are rendered in-memory and returned directly to the client or webhook without being stored as customer documents in application storage.

verified_user Designed For Sensitive Workflows
memory In-Memory Rendering

Why Teams Choose XeroPDF

A quick comparison of the controls that matter when you are rendering invoices, records, statements, and other sensitive documents.

Capability Typical HTML-to-PDF API XeroPDF
Document handling Often opaque about temp storage and browser artifacts Privacy-first, in-memory rendering flow with no customer document storage in app logic
Output types PDF only PDF plus PNG, JPEG, and WebP screenshots
Control surface Basic page format and headers Page size, viewport, delay, wait conditions, page ranges, scaling, and image quality
Delivery options Synchronous response only Direct response or webhook delivery for PDF jobs
Document protection Rarely included Optional password-protected PDF encryption

API Playground

input.html
<div class="invoice-box"> <h1>Invoice #4920</h1> <p>Status: PAID</p> <!-- Zero Retention PDF Active --> </div>
shield_locked Enterprise Features

Real-time PDF Preview

Implementation

// Generate a PDF with advanced render controls
const response = await fetch('https://xeropdf.com/v1/pdf', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'sk_live_...'
  },
  body: JSON.stringify({
    html: '<h1>Invoice #4920</h1>',
    format: 'A4',
    landscape: false,
    scale: 0.95,
    waitUntil: 'networkidle',
    waitForSelector: '.invoice-ready',
    password: 'secure_pass_123',
    headerTemplate: 'Confidential'
  })
});

const arrayBuffer = await response.arrayBuffer();

Published Limits & Defaults

Payload Size
50MB

Maximum JSON body size for HTML, inline CSS, and embedded assets.

Concurrent Renders
2

Browser work is queued to keep output stable under load.

Wait Controls
4 Modes

Supports load, domcontentloaded, networkidle, and commit.

Viewport Range
320-2560

Explicit viewport control for PDFs and screenshots, plus up to 10s extra render delay.

Preview of a rendered invoice document generated from HTML with XeroPDF Invoices

Real HTML invoice rendered to PNG and PDF.

Preview of a rendered account statement generated from HTML with XeroPDF Statements

Sensitive statement layout rendered from HTML.

Preview of a rendered compliance document generated from HTML with XeroPDF Records

Formal compliance packet preview for sensitive workflows.

Preview of a rendered report dashboard generated from HTML with XeroPDF Screenshots

Dashboard-style report preview exported as a real PNG.

Simple, transparent pricing

Start for free, then move to one-time prepaid credit packs. No recurring subscriptions, no hidden platform fees.

Developer

$0.00 USD

  • check 50 Free Credits
  • check Community Support
  • check Full API Access

Starter

$10.00 USD

  • check 500 API credits
  • check $0.020 per PDF
  • check Remove Watermark
Best Value

Pro

$40.00 USD

  • check 2,500 prepaid API credits
  • check Priority Support
  • check Async Webhooks
  • check Remove Watermark
High Volume

Enterprise

$100.00 USD

  • check 10,000 prepaid API credits
  • check Dedicated Support
  • check Async Webhooks
  • check Remove Watermark

Authentication

The Zero Retention PDF API requires an API key for all requests. Your API key must be passed in the x-api-key header.

Headers: { "x-api-key": "your_api_key_here" }

Endpoints

POST /v1/pdf Generate a PDF from HTML

Payload Parameters

  • html (string, required) - The raw HTML string to convert.
  • format / width / height (optional) - Choose a named page format or custom dimensions.
  • landscape / scale / pageRanges (optional) - Advanced layout controls for print-ready output.
  • password (string, optional) - AES-256 password to encrypt the PDF.
  • headerTemplate (string, optional) - HTML template for the PDF header.
  • footerTemplate (string, optional) - HTML template for the PDF footer.
  • waitUntil / waitForSelector / delayMs (optional) - Control when rendering starts for JS-heavy pages.
  • viewport (optional) - Explicit browser viewport sizing up to 2560 x 2560.
  • webhookUrl (optional) - Receive the generated PDF asynchronously.
POST /v1/screenshot Render HTML into PNG, JPEG, or WebP

Payload Parameters

  • html (string, required) - The raw HTML string to capture.
  • type (optional) - png, jpeg, or webp.
  • fullPage (optional) - Capture the whole page instead of only the viewport.
  • quality (optional) - JPEG/WebP quality from 1 to 100.
  • omitBackground (optional) - Transparent PNG output when needed.

Privacy & Security

memory

Ephemeral Processing

HTML payloads and render outputs are processed in-memory inside isolated browser instances and streamed back to the client or webhook.

delete_forever

Zero Retention

Generated PDFs and screenshots are returned directly to the caller. We do not persist customer documents in application storage, and no retrieval endpoint exists for previously rendered files.

Compliance note: XeroPDF is designed for privacy-sensitive workflows. Customers remain responsible for their own regulatory and deployment requirements.

Frequently Asked Questions

How do I convert HTML to PDF with the API?

Send a POST request to /v1/pdf with your HTML payload and an x-api-key header. XeroPDF renders the document in-memory and returns the PDF directly to your application.

Can I generate screenshots instead of PDFs?

Yes. Use POST /v1/screenshot to render HTML into PNG, JPEG, or WebP. You can control full-page capture, image quality, viewport size, and render timing.

Does the API support password-protected PDFs?

Yes. Include the optional password field in your /v1/pdf request to encrypt the generated PDF before it is returned.

Can I receive generated files via webhook?

Yes. Add a webhookUrl when calling /v1/pdf and the API will return 202 Accepted before delivering the PDF asynchronously.