From 7f0514a31b5fd9052b5ce852c27cad29b6d5c624 Mon Sep 17 00:00:00 2001 From: "anatoly.shipitz" Date: Mon, 27 Oct 2025 15:13:01 +0100 Subject: [PATCH 1/2] Update Dockerfile.n8n to include pdf-lib package installation - Added PDF_LIB_VERSION argument to specify the version of pdf-lib. - Included pdf-lib installation in the npm install command to enhance PDF processing capabilities. These changes improve the n8n environment by enabling support for PDF manipulation features. --- Dockerfile.n8n | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile.n8n b/Dockerfile.n8n index b8c58ba..02910e4 100644 --- a/Dockerfile.n8n +++ b/Dockerfile.n8n @@ -5,6 +5,7 @@ ARG NODE_ENV=production ARG N8N_PORT=5678 ARG SHOWDOWN_VERSION=^2.1.0 ARG SLACKIFY_MARKDOWN_VERSION=^4.5.0 +ARG PDF_LIB_VERSION=1.17.1 # Install git for backup script and other packages + install external packages in one layer USER root @@ -13,6 +14,7 @@ RUN set -eux; \ npm install -g --no-audit --no-fund --ignore-scripts \ --legacy-peer-deps --no-workspaces \ --unsafe-perm \ + pdf-lib@${PDF_LIB_VERSION} \ showdown@${SHOWDOWN_VERSION} \ slackify-markdown@${SLACKIFY_MARKDOWN_VERSION} && \ npm cache clean --force From f83377b7aa851c91fda99e674db387acfb56f9bd Mon Sep 17 00:00:00 2001 From: "anatoly.shipitz" Date: Mon, 27 Oct 2025 15:13:56 +0100 Subject: [PATCH 2/2] Update Dockerfile.n8n to include pdf-lib in external modules allowlist - Added pdf-lib to NODE_FUNCTION_ALLOW_EXTERNAL to enhance PDF processing capabilities within n8n. This change improves the functionality of the n8n environment by enabling support for additional PDF manipulation features. --- Dockerfile.n8n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.n8n b/Dockerfile.n8n index 02910e4..035c2ff 100644 --- a/Dockerfile.n8n +++ b/Dockerfile.n8n @@ -20,7 +20,7 @@ RUN set -eux; \ npm cache clean --force # Configure external modules allowlist used by Code/Function nodes -ENV NODE_FUNCTION_ALLOW_EXTERNAL="showdown,slackify-markdown" +ENV NODE_FUNCTION_ALLOW_EXTERNAL="showdown,slackify-markdown,pdf-lib" # Create app directory WORKDIR /home/node