PDF generation operation

There are same extensions to generate PDF documents based on flow data, like PDF Factory or PDF Builder. I’m looking for an operation to generate a file based on given json data…

I try to generate a PDF with these extensions but I get errors like “TypeError: Cannot create property ‘images’ on string“…

Does anyone have experience generating PDF documents in Directus within a flow?
Does anyone have a solution to fix the extension errors?

2 Answers

2

I use TextToAnything for this and it works really well. I have a flow script that generates some html from my data and sends that to the Text2Anything plugin which outputs a PDF that I can attach as a file.
There’s a small monthly fee for it but it’s very cheap really.

Hi Burvs, thanx for your hint! Text2Anything is a commercial product. I have to register, and there are some terms and conditions. That's not what I'm looking for. I'd like to use an open-source product...

Then check this one out https://github.com/karamokoisrael/directus-extension-flow2pdf

Hi @EdgarFurkert,

Im the owner of TextToAnything.
TextToAnything is an extension that allows you to generate PDFs (from HTML) easily.
Let me know if you have any questions or add me on Discord.

Hi @Attacler, thank you very much for your support! I am looking for a simple way to generate a formatted PDF from JSON. I have looked at TTA. It is a powerful tool that offers much more than I need. I will definitely keep an eye on it.

@EdgarFurkert good to hear! Keep in mind that there are also 2 free tools included to help you out with flows :)