or
> Puppeteer. And then I am guaranteed to always have the latest version of
> Chrome.
>
>
>
> *From:* django-users@googlegroups.com [mailto:
> django-users@googlegroups.com] *On Behalf Of *Joel
> *Sent:* Wednesday, November 14, 2018 8:07 AM
> *To:* django-users@
: django-users@googlegroups.com
Subject: Re: Sending PDF from javascript to django
Ideally I would love to generate the pdf on the server. Hovered I am yet to
discover an easy way to create a pdf easily with the ease of jspdf's table
plugin.
Perhaps someone can shed light on a good python library
Ideally I would love to generate the pdf on the server. Hovered I am yet to
discover an easy way to create a pdf easily with the ease of jspdf's table
plugin.
Perhaps someone can shed light on a good python library to do this without
much ado.
On Wed, 14 Nov, 2018, 7:12 PM Jason your original er
your original error was due to exceding django's max upload size. check
out
https://docs.djangoproject.com/en/2.1/ref/settings/#data-upload-max-memory-size
also, you should check out https://djangopackages.org/grids/g/pdf/
What I would do is generate the pdf in the view from a rendered templat
I tried the following:
def myhandle_uploaded_file(f):
with open('some/file/name.txt', 'wb+') as destination:
for chunk in f.chunks():
destination.write(chunk)
def SendPrescriptionbyMail(request, cliniclabel, patient_id):
patient_id = int(patient
I use jspdf to generate pdf for downloading by end users. I wish to
add a function to let them send an email to themselves through the
server.
Reading a little bit, I've seen a method to send the pdf to the server
as a base encoded string, and then have the server decode it, before
emailing the obj
6 matches
Mail list logo