Information Classification: External Restricted.
See https://www.chili-publish.com/security

POST - resources/documents/tempxml/imagesandpdf

Generates a zip file with PDF and images of all the pages in the document, based on document XML which hasn't been saved yet (but is being edited in the editor, for example)

URI

resources/documents/tempxml/imagesandpdf

HTTP Method

Post

Request parameters

Name

Location

Type

Description

API-KEY

http header

apiKey

The API key previously generated by calling the GenerateApiKey function

itemID

query

itemID

The ID of the document for which to create the PDF

docXML

body

xmlString

The temporary document XML

settingsXML

body

xmlString

The XML containing the PDF Export Settings used to generate the PDF

imageConversionProfileID

query

itemID

The ID of the image conversion profile

taskPriority

query

int

The priority (1-10) of the task

HTTP Return Status

Created

Returns

taskXML

This function is always run asynchronously. The taskXML contains a "result" attribute, which in its turn contains an XML string of the Image generation result:

<result path="server_path" relativeURL="ZZZ" url="FULL_URL" />

relativeURL is provided from the root of the CHILI website.
The 'path' attribute contains the file path (on the server) to the generated zip file

An XML string describing the created task, containing its ID and other information.

All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security