MergeFiles

This activity facilitates the user in merging multiple PDF documents into a single
PDF document at a specified path.

Technical Reference

 

 

 

 

 

INPUT

FileList: This parameter specifies to provide the list of PDF file “Path” to merge them.

 

You have the option to either hardcode the values in the “Array of String” variable or pass the values as “Array of String” datatype.

 

This parameter accepts values in “Array of String” datatype.

 

(Refer in the below document to know how to declare array of string datatype).

OutputFileName: This parameter indicates the “Path” along with the name of the PDF to specify where merged PDF output should be stored.

 

You have the option to either hardcode the values in the “String” variable or pass the values as “String” datatype.

 

This parameter accepts values in “String” datatype.

 

(Refer the tips to get detailed information).

 

 

 

 

 

 

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the "Boolean" value as "True" or "False."

 

True: Continue executing the workflow regardless of any errors thrown.

False: Halt the workflow if it encounters any errors.

None: If the option is left blank, the activity will, by default, behave as if "False" were chosen.

Version: It indicates the version of the feature being used.

OUTPUT

Result: It provides the ability to view the execution status of the activity. It returns values in "Boolean."

 

True: Indicates that the activity has been executed successfully without any errors.

False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.

Represents mandatory fields to execute the workflow

 Here's an example of how the “MergeFiles” activity works in the workflow –

The following is a simple example that demonstrates how to merge two different PDF
files the content from the specified pages of the provided input PDF document.

1.       Create a solution for building a workflow.

2.       Drag and drop the "MergeFiles" activity onto the designer pane and set it as
the “Start Node.”

3.       Double-click the activity to provide the essential details.

a.       Here, I am providing the “OutputFileName” as the name and path of my PDF
document to store the merged PDFs.

4.       Navigating to the “FileList” in the properties section to provide the list of PDF
files to be merged.

a.       It accepts only “Array of String” and there are two ways to provide the input of
the file list.

b.       Method 1: The list of PDF files can be hardcoded directly in the property “FileList”.
Click on the variables section and here I am providing the name as “Input”
and choose the type argument as “Array[String]” .

i.      Here provide the default value as multiple files in the format as
{“Path1.pdf”, “Path2.pdf”}

ii.      Then, enter the variable name in the “FileList” property.

iii.      Method 2: You can provide the values in the “FileList” property by entering the
format as {“Path1.pdf”, “Path2.pdf”}.

5.       Now, execute the workflow.

The bot will execute the workflow and merges the list of specified files
into a single PDF document in the specified Output path.