2021.1

Table Of Contents
Alternatively, if the Context image parameter is set to a value of Email or Web, then the
following image parameter can also be specified:
l Viewport Width the image width of the preview image in pixels.
Once the inputs and image parameters have been entered/specified, select the Submit button
to create the preview image. When the response returns, a download link of the preview image
(or images) 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 Image By Data (Using JSON)
Problem
You want to create one or more preview images using a template and JSON data 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
Image (By
Data) (JSON)
/rest/serverengine/workflow/contentcreation/imagepreview/
{templateId}
POST
Example
HTML5
cc-preview-image-by-data-json.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Create Preview Image (By Data) (JSON)
Page 307