Document Automation API

Generate, fill, sign and process PDF documents with one API.

P4PDF turns your data into complete PDF documents. Render templates, fill dynamic fields, apply digital signatures and timestamps, embed attachments, and read QR or barcodes — all fully automated.

Example API request
POST /api/sign
Authorization: Bearer <token>
Content-Type: application/json

{
  "id": "ef2c...4d7a",
  "signedHash": "iVB0Rw0KGgo..."
}

Generate PDFs from templates

Upload a PDF template and define dynamic fields for text, images and barcodes. Map your data directly into placeholders and render consistent documents at scale.

Visual field mapping

Click and define text fields, images or barcodes directly on the PDF.

Dynamic data binding

Fill templates using structured JSON — no manual formatting.

Digital signatures & timestamps

Apply certificate-based signatures, add trusted timestamps (TSA), and automate hashing workflows with full cryptographic integrity.

Certificate-based signing

Support for external signers, HSM, smartcards or custom clients.

Trusted timestamps

Integrate with any TSA to add verifiable timestamp tokens.

Multiple signatures

Support for multi-party, multi-step signing workflows.

Embed file attachments

Store supporting documentation such as raw data, reports or logs directly inside the PDF to create verifiable document bundles.

Any file type

Attach binary files, datasets or custom audit outputs.

Evidence bundles

Keep measurements, logs and certificates in a single container.

Metadata support

Store attachment metadata for validation or audit trails.

Read QR & barcodes

Detect and extract QR codes, Datamatrix and other barcode types from any PDF page, including coordinates and orientation.

Multi-code detection

Scan pages with multiple QR/Datamatrix codes.

Coordinates & bounds

Extract the exact x/y position and size of each code.

Error correction

Robust decoding of damaged or low-quality codes.