Docs / Tools / csv-fill-pdf

CSV Fill PDF API

Fill an AcroForm PDF from the first CSV data row; flatten by default so recipients cannot edit values.

Web UI: CSV to PDF form fill

Authentication

Bearer API key required on every request.

Request

POST https://api.omnicap.app/v1/csv-fill-pdf

Content-Type: multipart/form-data

  • file (file, required)

    Fillable PDF with AcroForm fields.

  • csv (file, required)

    CSV with a header row matching field names.

  • password (string)
  • flatten (string)

    1 (default) to bake fields; 0 to leave editable.

Response

Mode: sync — binary file body

Headers: X-Page-Count, X-Fields-Filled

Examples

curl

curl -X POST "https://api.omnicap.app/v1/csv-fill-pdf" \
  -H "Authorization: Bearer $OMNICAP_API_KEY" \
  -F "file=@/path/to/document.pdf"

Node.js (fetch)

const form = new FormData();
form.append("file", fileBlob, "document.pdf");

const res = await fetch("https://api.omnicap.app/v1/csv-fill-pdf", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.OMNICAP_API_KEY}` },
  body: form,
});
const out = await res.arrayBuffer();

Billing

1 billable unit(s) per successful call.

Changelog

  • 2026-10-28: Initial public release.