# MergeDocuments

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Unknown

Source code: <https://github.com/FrendsPlatform/Frends.Pdf/tree/main/Frends.Pdf.MergeDocuments>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                           | Description                                                                                                                          |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| InputFilePaths : `String[]`    | <p>Paths to files to merge.</p><p><br>Default: <code>-</code><br>Example: <code>\["C:/files/foo.pdf", "C:/files/bar.pdf"]</code></p> |
| DestinationFilePath : `String` | <p>Path where to save merged Pdf.</p><p><br>Default: <code>-</code><br>Example: <code>"C:/files/merged.pdf"</code></p>               |
| {% endtab %}                   |                                                                                                                                      |

{% tab title="Parameter: Options" %}

| Name                             | Description                                                                                                                    |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| ThrowErrorOnFailure : `Boolean`  | <p>Whether to throw an error on failure.</p><p><br>Default: <code>True</code><br>Example: <code>false</code></p>               |
| ErrorMessageOnFailure : `String` | <p>Overrides the error message on failure.</p><p><br>Default: <code>-</code><br>Example: <code>Custom error message</code></p> |
| {% endtab %}                     |                                                                                                                                |

{% tab title="Result: Result" %}

| Name                | Description                                                                                                                               |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean` | <p>Indicates if the task completed successfully.<br>Example: <code>true</code></p>                                                        |
| Error : `Error`     | <p>Error that occurred during task execution.<br>Example: <code>object { string Message, object { Exception AdditionalInfo } }</code></p> |
| {% endtab %}        |                                                                                                                                           |

{% tab title="Changelog" %}

## Changelog

### \[1.0.0] - 2025-08-28

#### Changed

* Initial implementation
  {% endtab %}
  {% endtabs %}
