There are few nodes what can make (image) or convert (Convert to File) binary files or you could use APIs like renderform.io or APITemplate
if you need PDF, I think thatās no easy, but maybe you can make image and convert it somehow? Or use pdf template api, check this
Also maybe you could find some community node, but I donāt know any what address this problem
If you need like JSON file to be binary Iāve made wf what download data from mongo as JSONL file (I need that for fine tuning)
Thank you for your reply.
Iāve tried to encode the response to base64 and construct the binary file like you did, but the file i get isnāt a valid pdf file.
I donāt know why the http-request node is dispayed as unknown in the preview ⦠maybe a new version.? (Edit: yes its ther version, changing the node version to 4.1 will fix the preview, here in the thread)
PS: I need to use a code node, because Iām merging a variable number of PDF documents and the HTTP request node canāt handle that.
Edit: fixed some stuff
Yes, that makes sense. I was creating a JSONL fileāwhich isnāt technically text, but itās relatively straightforward compared to PDFs.
Just a quick question: how many PDFs do you need per month, and can you send this data to a third-party API? If so, Iād recommend using something like APITemplate.
Alternatively, Iāve set up a workflow that converts HTML to PDFs using Gotenberg, a tool specifically for PDF operations. Youāll need to install it, but itās straightforward using the following Docker command:
docker run --rm -p 3333:3000 gotenberg/gotenberg:8
(Note: I changed the port to 3333 because 3000 was already in use on my system.)
thanks,
I have a similar one for generating a HTML file filled with images and printing it with gotenberg.
Borderless, assuming all images have the same dimensions.
But itās feels wrong and probaly breaks at the slightest variations of inputsā¦
Edit: posting the workflow it gives a 403 error for some reason. maybe because of the html
Edit2: posting without the html node
Aaaaa sorry about that⦠Iām not sure why this is happening. Could you possibly share a link to a gist or something similar? Is everything working for you, or does your workflow still need some attention from us?