API Response "collection of byte" to PDF

Describe the problem/error/question

I’m trying to convert an API Response (collection of Data) to a pdf.
Due to its not directly possible in my system, where the API request is done, I upload the response as a file to n8n. (In Postman, the response is shown correctly as a PDF, but I receive the raw txt data…)
The issue which I want to fix is also described here:

Now I’m trying to convert the data to a human readable pdf file…

What is the error message (if any)?

No error messages, I can just generate an empty PDF with my n8n workflow

Please share your workflow

Share the output returned by the last node

I’ts an empty blank pdf, I expect the same content at is is shown in Postman

Information on your n8n setup

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

hello @zuselli

can you provide a file sample for testing?

Hi @zuselli

At the moment we don’t have a built in way to convert to PDF.

You could use something like APITemplate.io or Google Docs to send the text there and then download as a PDF.

Or you could use the Code node with a python library like pdfkit to do the conversion.

This user has implemented something similar:

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