S
S
Sergey Nizhny Novgorod2016-11-07 10:18:23
Django
Sergey Nizhny Novgorod, 2016-11-07 10:18:23

How to convert html to pdf with styles preserved?

Hello.
Task:
A person on a special page selects the desired Wishlist, knocks out custom information, presses the "generate in pdf" button. The server receives this request, processes it and generates a pdf page.
I just did this:
Pages with a form -> processing through model methods -> rendering html -> send an html page object to a third-party service -> Get PDF I
use the service: pdfcrowd.com and its API, as a result, I generate a page without my css styles.
How can one output a pdf file from django so that everything is nice?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-11-07
@sim3x

https://www.google.com.ua/search?q=python+html+to+pdf

A
Alexander Taratin, 2016-11-07
@Taraflex

wkhtmltopdf.org
+
wkhtmltopdf python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question