> For the complete documentation index, see [llms.txt](https://docs.tivity.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tivity.one/building-an-application/execution/scripting/functions/pdf.md).

# PDF

## MergePdfs

Merges the given PDF documents to one PDF document. Throws an error when one of the documents is not a PDF.

#### Syntax

```
MergePdfs ( Documents , Name )
```

#### Parameters

**Documents**\
&#x20;List of PDFs to be merged.\
&#x20;Type: List\<Document>

**Name**\
The name of the document containing merged PDFs.\
&#x20;Type: String

#### Return Type

Document
