/
Webservice Functions - DocumentCreateTempPDF

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

Webservice Functions - DocumentCreateTempPDF

Generates a PDF of the document, based on document XML which hasn't been saved yet (but is being edited in the editor, for example)

Declaration

public string DocumentCreateTempPDF ( string apiKey, string itemID, string docXML, string settingsXML, int taskPriority );

Arguments

Name

Type

Description

apiKey

apiKey

The API key previously generated by calling the GenerateApiKey function

itemID

itemID

The ID of the document for which to create the PDF (optional)

docXML

xmlString

The temporary document XML

settingsXML

xmlString

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

taskPriority

int

The priority (1-10) of the task

Returns

taskXML

This function is always run asynchronously. The taskXML contains a "result" attribute, which in its turn contains an XML string of the PDF 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 PDF or zip file or directory where the output has been created.

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

Related content

Using dedicated WebService Functions
Using dedicated WebService Functions
Read with this
Webservice Functions - DocumentCreatePDF
Webservice Functions - DocumentCreatePDF
More like this
Webservice Functions - DocumentGetHTMLEditorURL
Webservice Functions - DocumentGetHTMLEditorURL
Read with this
Webservice Functions - DocumentCreateTempIDML
Webservice Functions - DocumentCreateTempIDML
More like this
POST - resources/documents/tempxml/images
POST - resources/documents/tempxml/images
Read with this
Webservice Functions - DocumentCreateTempPackage
Webservice Functions - DocumentCreateTempPackage
More like this

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