Merge PDFs with Stirling PDF

Hello everyone!

I have installed n8n and Stirling PDF locally with docker. Now I am able to connect to Stirling PDF with the http request node. The problem arrise when i try to merge PDFs, i dont know what structure should be the files in.

In the Stirling PDF documentation says it should be an array of strings ¿How could i do this?

This is what i have tried
In the next screenshot we have my http node. As you can see, in the input i have two different pdfs that i want to merge. But the problem is they are treated separatley because they are two different Items, so instead of having 1 output i have two outputs and nothing is merged.

The second thing that i have tried is to have both pdfs in the same item, but if i do it this way the name of the binary file can not be the same for both pdfs so i can not specify the “Input Data Field Name” because each file need to have a different one.

What could i do?

Please share your workflow

Information on your n8n setup

  • n8n version:1.102.4
  • Database: SQLite:
  • n8n EXECUTIONS_PROCESS setting:own
  • Running n8n via: Docker
  • Operating system: Windows

Hi @Javier_Santuy, I don’t know if it’s miss-typed or not, but instead of items, you need to type it as $input.all() since items aren’t supported anymore in n8n new version.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.