PDF Reducer
Overview
PDF Reducer is a reducer that produces a JSON containing the Base64 encoding and the path of a PDF file that is the result of merging PDF files that are taken from the output of blocks of the reference context.
In other words, a PDF Reducer block, put after a context whose iterations generate PDF files, merges those files in one PDF file.
Input
A PDF Reducer block has the following input variables:
base64
(string, required) Base64 encoding of the file to add to the output ZIP.path
(string, required) Name or path of the file to add to the output ZIP.
The input variables are valued as many times as there are iterations of the reference context.
Block properties
The properties of a PDF reducer block are accessed by editing the block and are divided into these groups:
-
Basic properties:
- Block name
- Component version (read only)
- Block ID (read only)
-
Functional:
- Context to reduce: reference context. It is chosen from a drop-down. To remove the choice, select Clear .
- PDF File name: the name of the PDF file to generate.
-
Deployment:
- Timeout: execution timeout expressed in minutes (m) or seconds (s).
- Replicas: number of required instances.
- Consumer Number: number of threads of the consumer, the software module of the block that provides input to process by taking it from the block's work queue.
- Memory: required memory.
- CPU: thousandths of a CPU required (for example: 1000 = 1 CPU).
-
Input: these properties correspond to the input variables and must be set to the output keys of blocks of the reference context.
-
Output: read-only, a memorandum of the contents of the output JSON object, that is:
- The Base64 encoding of the PDF file.
- The name of the PDF file.