Best way is relative.
Simplified we do the following:
It works, not sure if it is the fastest way, we see about a 4-5 sec response time. As some of the generated PDF files can be reused we actually keep the PDF file on disk and reuse them for other recurring requests. This bypasses the generation of PDF file bring the response time back to 1 sec.
By using Celery you don't have an exact time of when a PDF will
be generated.
There are several commercial applications available to generate
PDF's which might be much faster but for us the open source
application works fine.
wkhtmltopdf: https://wkhtmltopdf.org/
Thanks!
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e8ef92bf-19c7-4881-9465-a04749cfad00%40googlegroups.com.
Great. Thanks
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bc336d88-c70f-42af-aa6e-87e40c6ca12e%40googlegroups.com.