Merge multiple images with StirlingPDF (solution)

Describe the problem/error/question

Send a variable number of images to Stirling API as formData and merge them to a single PDF.

What is the error message (if any)?

I somehow had managed to achieve the first part (sending the data), but never managed to convert the response into a working PDF file.

grafik

What finally worked, was setting the encoding to “arraybuffer” and encoding the response to base64…

Please share your workflow

Share the output returned by the last node

PS: you probably need the environment variable
“NODE_FUNCTION_ALLOW_BUILTIN” to be set to “*” or “form-data”

Information on your n8n setup

  • n8n version: current
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: ubuntu
1 Like

Thanks @atwork1 for sharing! Looks like you managed to find the solution! :sunflower: Would it be ok if I mark this post as solved?

1 Like

Sure :)…

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