Create Preview PDF

Submits a request to create a preview PDF of the print output for a single data record.

Request takes binary file data as content, and on success returns a response containing the Managed File ID for the newly created preview PDF file.

Type: POST
URI: /rest/serverengine/workflow/contentcreation/pdfpreview/{templateId}/{dmConfigId}
Parameters:

Path:

  • templateId – the Managed File ID (or Name) of the design template in File Store
  • dmConfigId – the Managed File ID (or Name) of the Data Mapping configuration in File Store

Query:

  • persist – whether the Data Record produced will be persisted in Server (Default Value: true)
Request:
Add. Headers: auth_token – Authorization Token (if server security settings enabled)
Content: Data File (File)
Content Type: application/octet-stream
Response:
Add. Headers:
Content: Managed File ID
Content Type: text/plain
Status:
  • 200 OK – Creation of preview PDF in File Store successful
  • 401 Unauthorized – Server authentication required
  • 403 Forbidden – Server authentication has failed or expired
  • 404 Not Found – Design template, Data Mapping configuration or Data Record entity not found in File Store/Server