Generating and Storing PDF Reports in a Database with Python
Generating and Storing PDF Reports in a Database with Python
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?
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?
-
Lech Kulikowski
- Posts: 7454
- Joined: Tue Mar 20, 2018 5:34 am
Re: Generating and Storing PDF Reports in a Database with Python
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.
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.
-
KelvinAlves
- Posts: 2
- Joined: Fri Oct 03, 2025 9:27 am
- Location: https://gritt.io/
Re: Generating and Storing PDF Reports in a Database with Python
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!
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!
-
Lech Kulikowski
- Posts: 7454
- Joined: Tue Mar 20, 2018 5:34 am
Re: Generating and Storing PDF Reports in a Database with Python
Hello,
We need some time to prepare a sample.
Thank you.
#18582
We need some time to prepare a sample.
Thank you.
#18582
-
Lech Kulikowski
- Posts: 7454
- Joined: Tue Mar 20, 2018 5:34 am
Re: Generating and Storing PDF Reports in a Database with Python
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.
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.
-
KelvinAlves
- Posts: 2
- Joined: Fri Oct 03, 2025 9:27 am
- Location: https://gritt.io/
Re: Generating and Storing PDF Reports in a Database with Python
Hello,
Thank you so much for the update! You’re the best, I really appreciate your help.
Thank you so much for the update! You’re the best, I really appreciate your help.
-
Lech Kulikowski
- Posts: 7454
- Joined: Tue Mar 20, 2018 5:34 am
Re: Generating and Storing PDF Reports in a Database with Python
Hello,
You are welcome.
You are welcome.