Orbeon Forms
Search…
TIFF production

Introduction

PDF files, whether produced automatically or via a PDF template, can be converted to TIFF image files for download or email.

Availability

[SINCE Orbeon Forms 2016.1]
This is an Orbeon Forms PE feature.

Setup

Using buttons

TIFF files can be accessed directly from the Form Runner Summary Page and Detail Page using the tiff button.
Example for the Detail Page:
1
<property as="xs:string" name="oxf.fr.detail.buttons.acme.order">
2
summary wizard-prev wizard-next pdf tiff save review
3
</property>
Copied!
Example for the Summary Page:
1
<property as="xs:string" name="oxf.fr.summary.buttons.acme.order">
2
home review pdf tiff delete duplicate new
3
</property>
Copied!

Properties

Compression type

The TIFF compression type can be selected with the oxf.fr.detail.tiff.compression.type property:
1
<property
2
as="xs:string"
3
name="oxf.fr.detail.tiff.compression.type.*.*"
4
value="LZW"/>
Copied!
    possible value: CCITT RLE, CCITT T.4, CCITT T.6, LZW, JPEG, ZLib, PackBits, Deflate, EXIF JPEG or none
    default: LZW

Compression quality

The compression quality can be selected with the oxf.fr.detail.tiff.compression.quality property:
1
<property
2
as="xs:string"
3
name="oxf.fr.detail.tiff.compression.quality.*.*"
4
value="0.8"/>
Copied!
    possible values: 0.0 to 1.0
    default: 0.8

Scale factor

The scale factor can be selected with the oxf.fr.detail.tiff.scale property:
1
<property
2
as="xs:string"
3
name="oxf.fr.detail.tiff.scale.*.*"
4
value="3.0"/>
Copied!
    possible values: positive double-precision number
    default: 3.0

Custom TIFF filename

The following property dynamically controls the name of the TIFF file produced on the Detail Page. By default, if the property value is blank, the TIFF filename is a random id assigned to the current form session.
1
<property
2
as="xs:string"
3
name="oxf.fr.detail.tiff.filename.*.*"
4
value=""/>
Copied!
The value of the property, if not empty, is an XPath expression which runs in the context of the root element of the XML document containing form data. The trimmed string value of the result of the expression is used to determine the filename.
Example:
1
<property
2
as="xs:string"
3
name="oxf.fr.detail.tiff.filename.*.*"
4
value="//customer-id"/>
Copied!
If the form contains a customer-id field, the PDF filename will be the value of that field followed by .tiff. If the field is blank, the default, random id filename is used, as if the property had not been specified.

Sending

You can send the URL of a TIFF file using the content = "tiff-url" parameter. See Sending a TIFF URL.

Email

You can email the TIFF file using the following property:
1
<property
2
as="xs:boolean"
3
name="oxf.fr.email.attach-tiff.*.*"
4
value="true"/>
Copied!