2021.1

Table Of Contents
Once the inputs are entered, select the Submit button to create the preview PDF. When the
response returns, a Managed File ID of the preview PDF (in the file store) will be displayed in
the Results area.
Further Reading
See the "Content Creation Service" on page529 page of the REST API Reference section for
further detail.
Creating a Preview PDF for Print By Data
Problem
You want to create a preview PDF using a data file, data mapping configuration and a template
as inputs.
Solution
The solution is to create a request using the following URI and method type and submit it to the
server via the Content Creation REST service:
Create Preview
PDF (By Data)
/rest/serverengine/workflow/contentcreation/pdfpreview/
{templateId}/{dmConfigId}
POST
Example
HTML5
cc-preview-pdf-by-data.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Create Preview PDF (By Data) Example</title>
<script src="../../common/lib/js/jquery-
3.4.1.min.js"></script>
<script src="../../common/js/common.js"></script>
<script src="js/cc-preview-pdf-by-data.js"></script>
<link rel="stylesheet" href="../../common/css/styles.css">
</head>
<body>
Page 291