# External module merge multiple PDFs into a single PDF

**URL:** <https://community.n8n.io/t/external-module-merge-multiple-pdfs-into-a-single-pdf/2633>\
**Category:** Questions\
**Created:** [October 12, 2020, 6:38pm UTC](https://community.n8n.io/t/external-module-merge-multiple-pdfs-into-a-single-pdf/2633 "2020-10-12T18:38:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [October 12, 2020, 9:13pm UTC](https://community.n8n.io/t/external-module-merge-multiple-pdfs-into-a-single-pdf/2633/2 "2020-10-12T21:13:05Z")

</div>

Welcome to the community @Rodrigo_Meyer!

Probably best if you build your own custom image based on the one of n8n.

So you create a file named “Dockerfile” with this content:

```bash
FROM n8nio/n8n

RUN npm install -g easy-pdf-merge

```

In the same folder you execute then this command to build it:

```auto
docker build -t n8n-pdf 

```

If you then use this image and start n8n like this:

```bash
docker run -it --rm --name n8n -p 5678:5678 -e NODE_FUNCTION_ALLOW_EXTERNAL=easy-pdf-merge -v ~/.n8n:/root/.n8n n8n-pdf

```

the library should theoretically be accessible.

---

_[View the full topic](https://community.n8n.io/t/external-module-merge-multiple-pdfs-into-a-single-pdf/2633)._
