ReportLab or Xhtml2pdf Please can any one guide me to convert the rendered in html to pdf

535 views
Skip to first unread message

Irfan Khan

unread,
Apr 19, 2019, 2:10:31 PM4/19/19
to Django users
hi,
i stucked in converting the pdf file from html
can an one suggest me even any other possibility instead of using python library 

ache...@gmail.com

unread,
Apr 19, 2019, 2:36:45 PM4/19/19
to django...@googlegroups.com
ReportLab is better then Xhtml2pdf but the former has a considerable learning curve the latter is easy to use but css get messy. Specifically css3.
Did you try weasyprint?

Adolphe

Sent from my iPhone
--
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/6862bdc2-bb4f-4253-99de-7606a6b5ac2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sam W

unread,
Apr 19, 2019, 3:46:39 PM4/19/19
to django...@googlegroups.com
Use java .... then use py4j or Jython to call java method...

Jani Tiainen

unread,
Apr 19, 2019, 4:38:00 PM4/19/19
to django...@googlegroups.com
Hi.

I've had pretty good success with wkthtmltopdf.


Iuli Hardt

unread,
Apr 20, 2019, 11:33:51 AM4/20/19
to Django users
Try to use weasyprint, put css in the pdf html using <!DOCTYPE html>...<style> "style page to print here" </style>

google "DJANGO WASYPRINT"
Reply all
Reply to author
Forward
0 new messages