#Generate File from JSON

11 messages · Page 1 of 1 (latest)

craggy viper
#

Hi Team, Does it possible to generate PDF or other format file from JSON in Directus?

#1019641731332976722

solid epochBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

brisk hedge
#

You can do this using a Flow with a Script Operation

#

or if you implement a custom endpoint that actually runs the same code as you have to implement within the Flow

craggy viper
#

We don't have proper format to display pdf file? Event don't have pdf previewer?

brisk hedge
#

Rendering a pdf is quite complex 😄 how should it display this within such a small window? what about multiple pages? So sounds simple, but it isn't that easy I would assume

craggy viper
#

Not render in small window, but in click of response (file name) at least open in new tab or etc..Without preview how does this userful?

brisk hedge
#

I agree, but not everyone needs this, it's a headless cms, not an asset management app, you can extend it by your own display to make it render the PDF just as you would like to have

craggy viper
#

Last question before close this post: Instead of showing PDF, I was thinking to upload pdf first then specify link, so user can easily redirect. Do we have link facilty?

brisk hedge
craggy viper
#

I'm using cloud community and URL type not exist on it.