PDF to image converter
Availability
Orbeon Forms 2016.1 and newer.
Introduction
This processor converts a PDF document into a single image document.
When the output format is TIFF, the processor creates a multi-page TIFF containing one page for each page in the PDF document. For other output formats, only the first page of the PDF document is used and a single image is created.
When using the TIFF format, if the destination format is bitonal (black and white), dithering is applied.
Basic usage example
Inputs and outputs
data
input: receives the PDF document to convert as a binary document.config
input: receives the configuration of the transformation.data
output: produces the resulting image as a binary document.
The config
input supports the following elements:
format
:one of
gif
,png
,jpeg
, ortiff
mandatory
scale
:scaling factor
optional
defaults to
1.0
compression
compression settings
optional
type
child elementonly meaningful for
tiff
formatone of
CCITT RLE
,CCITT T.4
,CCITT T.6
,LZW
,JPEG
,ZLib
,PackBits
,Deflate
,EXIF JPEG
ornone
defaults to
none
quality
child elementonly meaningful for
gif
,jpeg
andtiff
formatsvalue is a double-precision number from
0.0
to1.0
Examples of configurations
GIF output:
JPEG output:
PNG output:
Black and white TIFF output with "CCITT T.6" compression:
Uncompressed TIFF output:
Compressed TIFF output with LZW compression: