There is django-hardcopy.

However, I’m in process of changing my PDF generation algorithm.  I originally 
used PhantomJS with gs-print and gs-view for Windows.  Unfortunately, PhantomJS 
has been discontinued, and it wasn’t taking advantage of rendering changes to 
HTML (especially for printing or PDF generation) that had developed over the 
years, especially with Google Chrome’s Blink engine, which used to formerly be 
Webkit, the same engine that PhantomJS was using.  My current goal is to 
utilize headless Chrome with Puppeteer, which is a NodeJS package.  Since 
PhantomJS was a NodeJS package, too, it shouldn’t be to involved to get a 
script working for 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@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 to do this without much 
ado.

On Wed, 14 Nov, 2018, 7:12 PM Jason 
<jjohns98...@gmail.com<mailto:jjohns98...@gmail.com> wrote:
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 template and 
then send from email.  No need to generate it on the client and upload for an 
email.
--
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+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@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/506231af-2c44-4e8c-9c9d-36d8ea913b7b%40googlegroups.com<https://groups.google.com/d/msgid/django-users/506231af-2c44-4e8c-9c9d-36d8ea913b7b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@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/CAA%3Diw_9QAr_Y2deWgjsXmZcmM8HALA3Gg0jDz_dZVtnSt9Vtog%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAA%3Diw_9QAr_Y2deWgjsXmZcmM8HALA3Gg0jDz_dZVtnSt9Vtog%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/95f81d5cad9e4abb87af8d794ca745e6%40iss2.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to