Skip to main content
Skip table of contents

exportPDF

Exports the specified document File into a PDF File and stores it into the variable context.

Child commands

  • setEncryption Optional. An exportPDF may have onesetEncryption as a child to encrypt the produced PDF.

Attributes

var

Required

Value type

EL-evaluated

Yes

String

No

Defines the name of the variable holding the produced PDF File value.

document

Required

Value type

EL-evaluated

No

File

Yes

Defines the document that is exported into a PDF file. If not defined and this command exists in an Office template, the template itself will be exported. In an Online template this attribute should always have a value.

conformance

Required

Value type

EL-evaluated

No

String

Yes

Defines a conformance level for the produced PDF. The resolved String is expected to one of the following conformance level names:

  • PDF/A-1a

  • PDF/A-1b

  • PDF/A-2a

  • PDF/A-2b

  • PDF/A-2u

  • PDF/A-3a

  • PDF/A-3b

  • PDF/A-3u

If the resolved value is not one those listed, the command produces a warning and behaves as if this attribute is not defined. If not defined, the produced PDF will not conform to any particular standard.

Examples

A typical use case is to produce a PDF out of the template's composed result:

CODE
composeContent var="composed" template="Document/content.html"
exportPDF var="composedPDF" document="${composed}"
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.