Merge PDFs

Description

Merges Binary and List[Binary] data with PDF content resulting in one PDF file that keeps the order of input fields. After merging it's possible to split result PDF document into a list of PDFs (list[binary]) by setting the value for Max number of pages field.

Data (from a source like email or work tickets) may come with an undetermined number of attachments. Flow Studio can process each document separately when extracting data. This might not be ideal when wanting to utilize Robin for human review. The attachments need to be grouped with the email/ticket. This function can aggregate all of the attachments together and present them in a consolidated view.

This function can be used in conjunction with the Image to PDF function to set a consistent format.

The function output type can be Binary data or a List of Binary data depending on the Max number of pages field value and type.

 Assume that there are two input PDF files, each of 10 pages:

Max number of pages field typeMax number of pages field valueFunction behaviourReturn typeResult
Constant0 or negativeMerges all input PDF files to oneBinary data1 PDF of 20 pages
Constant5Merges all input PDF files to one and
then split them into list of elements based on field value
List[Binary]List of 4 PDFs of 5 pages each
[PDF of 5 pages, PDF of 5 pages, PDF of 5 pages, PDF of 5 pages]
Constant7Merges all input PDF files to one and
then split them into list of elements based on field value
List[Binary]List of 3 PDFs
[PDF of 7 pages, PDF of 7 pages, PDF of 6 pages]
Argument (from the flow)0 or negativeMerges all input PDF files to oneList[Binary]List of 1PDF of 20 pages
Argument (from the flow)5Merges all input PDF files to one and
then split them into list of elements based on field value
List[Binary]List of 4 PDFs of 5 pages each
[PDF of 5 pages, PDF of 5 pages, PDF of 5 pages, PDF of 5 pages

If an already existing Flow with an old version of the Merge PDF function (without splitting functionality) is opened, the default value 0 will be set to the Max number of pages field. If this value is changed to any positive number, the function return type will also be changed and make require changes to the Flow (E.g., the Merge PDFs function can be used to separate each element in the list).

               

Use

  • Argument:
    • Select an argument. (Binary or List[Binary])
    • Click Add argument field to add additional binary data.
  • Max number of pages (Default value = 0)
    • Split the PDF into list elements based on a set number of pages (if Max number of pages value = 0 or negative - no split will be done)
  • Output field name:
    • Enter an output field name.

Type

Formulas