HTML binary files and gotenberg

Describe the problem/error/question

I am trying to use a self hosted gotenberg instance to create a PDF. Everything is working but I need to send it an index.html, which is the main PDF content, and a footer.html which is the footer. I am really not getting anywhere handling the multiple files within the workflow.

What is the error message (if any)?

The item has no binary field ‘[object Object]’ [item 0]

Check that the parameter where you specified the input binary field name is correct, and that it matches a field in the binary input

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.78.1
  • **Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

hello @campbellmcgregor

here is the correct one. You have to provide a binary field names, not their values.

I tried this solution, it doesn’t work

Problem in node ‘HTTP Request1‘

The item has no binary field ‘dataFooter’ [item 0]

Ah yes, try this one. Merge node had a wrong operation

Thanks. Now is working

If the issue was resolved, please mark my post as a solution by clicking on the little checkbox below the post so others can also see the solution.

Hmm, I tried using the workflow, but unfortunately ilit outputs the index and footer as seperate documents. Do you guys have a fix for this? I’m having a hard time adding a footer.

check the Merge node operation type. it should be combine by postition.

Unfortunately that does not seem to work for me. This is an example flow:

What is not working? I see two files

Correct, and that is exactly the problem. The Gotenberg should take two binary as input files, and combine them in a PDF. Now it looks like it’s processing them one by one rather then taking in the two data flows.

So inputting 2 or more binary data types, always results in multiple outputs, where this should not be the case.