carboneio / carbone

Fast and simple report generator, from JSON to pdf, xslx, docx, odt...
https://carbone.io
Other
1.32k stars 196 forks source link

[Feature Request]: Render returned documents from database #119

Open Marouane-Belbouhali opened 3 years ago

Marouane-Belbouhali commented 3 years ago

Problem to solve I would like to easily render my document which is stored in database.

Proposed solution I'm not sure what the best method would be.

Describe alternatives you've considered Additional python library?

Additional context N/A

dgrelaud commented 3 years ago

Hello,

Is the template which is stored in a database? or the final result?

Rhanks

Moekandu commented 3 years ago

I believe I can help explain, since I am interested in the same feature. We also store our documents as "blobs" in a database.

Is it possible to pass a buffer to carbone.render, rather than loading the template from the file system?

Marouane-Belbouhali commented 3 years ago

Hello,

Is the template which is stored in a database? or the final result?

Rhanks

The template would be stored in Database, the final resul can easily be downloaded from the app.

Marouane-Belbouhali commented 3 years ago

I believe I can help explain, since I am interested in the same feature. We also store our documents as "blobs" in a database.

Is it possible to pass a buffer to carbone.render, rather than loading the template from the file system?

I contacted Carbone Support and they told me it's impossible to pass a Buffer to CarboneJS.

steevepay commented 3 years ago

Hello @Marouane, it is not possible for now, we created the issue on our side and we will probably make it in the coming months. I will notify you when we work on it and a beta is available ;)