Page 1 of 1
Generating and Storing PDF Reports in a Database with Python
Posted: Wed Jun 11, 2025 3:50 am
by Bege1987
Hello,
I'm using Python to generate reports and would like to create a PDF file directly from a report, then save it to a database—without prompting a download on the client side. What’s the best way to achieve this?
Re: Generating and Storing PDF Reports in a Database with Python
Posted: Wed Jun 11, 2025 8:35 am
by Lech Kulikowski
Hello,
You can render, export report on the server side and then save it as you need
https://github.com/stimulsoft/Samples-R ... er_Side.py
Thank you.
Re: Generating and Storing PDF Reports in a Database with Python
Posted: Mon Oct 13, 2025 8:57 am
by KelvinAlves
Hello,
I'm trying to generate PDF reports using Stimulsoft with Python, but my project is based on Django rather than Flask. I want to render and export the report on the server side, then save it directly to a database without prompting a download for the client. I saw some examples for Flask on the Stimulsoft GitHub but I'm unsure how to adapt them for Django. Has anyone tried this? Any guidance would be great since I’m investing quite a bit of time in this feature and want to make sure my implementation would satisfy an investor’s expectations for automated reporting.
Thanks!
Re: Generating and Storing PDF Reports in a Database with Python
Posted: Mon Oct 13, 2025 9:47 am
by Lech Kulikowski
Hello,
We need some time to prepare a sample.
Thank you.
#18582
Re: Generating and Storing PDF Reports in a Database with Python
Posted: Tue Oct 14, 2025 9:00 pm
by Lech Kulikowski
Hello,
We have added new sample:
https://github.com/stimulsoft/Samples-R ... er_Side.py
But we have found the issue and fix it. This will work in the new release 2025.4.2 within a week.
Thank you.
Re: Generating and Storing PDF Reports in a Database with Python
Posted: Wed Oct 15, 2025 7:36 am
by KelvinAlves
Hello,
Thank you so much for the update! You’re the best, I really appreciate your help.
Re: Generating and Storing PDF Reports in a Database with Python
Posted: Wed Oct 15, 2025 8:29 pm
by Lech Kulikowski
Hello,
You are welcome.