API V2

Fill a PDF Form

Generate reports or fill forms from various data collection sources with PDF4me Mail merge actions. Your dynamic data collection transforms to PDF documents with PDF4me Mail Merge features. This action produce multiple documents from list of data collection items.

If you wish to generate single document, please create a json form data.

If you wish to generate multiple documents with same template, please use DataList.

  • Method: POST
  • Endpoint: /api/v2/FillPdfForm

Parameters

File Contentbase64, Required

The content of the input file

File Namestring, Required

The template file name with .pdf extension

data ArrayString, Required

data Array of PDF file, the output must be in string format.

output Type String, Required

Output type of PDF file, the output must be in string format.

Input Data TypeString, Required

Input Data Type of PDF file, the output must be in string format.

Meta DataString, Required

Meta Data of PDF file, the output must be in string format.

Meta Data JsonString, Required

Meta Data Json file, the output must be in string format.

Input Form DataString, Required

Input Form Data of PDF file, the output must be in string format.

Output

Output Documentsarray of object

Output Documents generated using the template and data

File Namestring

Output file name

File Contentbyte

Output file content

Header
Content-Type:application/json
Authorization: Please copy key from the link.

Payload

{
  "templateDocName": "test.pdf",
  "templateDocContent": "Please put PDF base64 content"",
  "dataArray": "hello"
  "outputType": "<string>",
  "inputDataType": "<string>",
  "metaData": "<string>",
  "metaDataJson": "<string>",
  "InputFormData": "<string>"
}

PDF4me api samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda