PDF Generator API icon

PDF Generator API

Generate PDFs, manage templates, convert HTML/URLs to PDF, and perform PDF operations like watermarking, encryption, and optimization

PDF Service → Fill Form Fields

AI-generated

Summary

Fill PDF form fields by sending a field-name-to-value JSON object and a PDF supplied by public URL or base64 content to the PDF Generator API. Choose whether the processed PDF is returned as JSON containing base64 data or a download URL, or as binary file data.

Inputs

  • PDF Source (required) — Choose From URL or From Base64. Supply the required PDF URL or base64-encoded PDF content for that source.
  • Form Fields Data (required) — JSON object mapping PDF form field names to values, such as {"firstName":"John"}.
  • Output Format — Select Base64 (JSON), URL (JSON), or File (Binary); defaults to Base64 (JSON).

Output shape

One output item per input item, with JSON data or binary PDF data depending on the selected output format.

For Base64 (JSON) and URL (JSON), the JSON includes success, operation, format, and the API response fields. File (Binary) returns the PDF in a binary property keyed "processed-document.pdf" and JSON metadata with filename and fileSize.

Links

Discussion