DirectoryToPdfContainerPostExecuter

Configuration file

None. Configuration is done directly with a string in field " Config file" .

Class name

com.ebd.hub.datawizard.postexec.DirectoryToPdfContainerPostExecuter

Description


This postexecuter can be used to create a PDF/A container file from several files in a directory (containing all files). Alternatively, if the individual files are PDF files, a single PDF file can be created from these (→ see parameter "merge").

The content settings of the Response are ignored when this postexecuter is used, i.e. only the created container file is returned to the Response.

Parameters


The postexecuter is configured via a string in field Config file with the following parameters (separated by semicolons).


Parameter

Description

folder

Path of the directory with the files.

deleteSource

(optional) Specifies whether the directory and the files it contains should be deleted afterwards or not. Default: "true".

sortAsc

(optional) Specifies whether the files are to be sorted in ascending ("true") or descending ("false") order in the container. Default: "true".

firstFile

(optional) Only has an effect if the individual files are PDF files and parameter "merge=true".

File name to specify which file is inserted first when merging. The sorting setting applies to the subsequent files. Default: "null".

merge

(optional) Only has an effect if the individual files are PDF files.

If true, a large PDF file is created. If false, the container only contains the individual files. Default: false.


Formal structure:


<folder>;[<deleteSource>];[<sortAsc>];[<firstFile>];[<merge>]


The only mandatory parameter is the path of the directory where the files are located (folder). As usual, variables can also be used here (with @VARNAME@).

Examples


./temp/files/

./temp/files/;false;false;file1.txt;true