I use Pisa/xhtml2pdf in my Django apps to generate pdf from an HTML source. That is:
- I generate the HTML file formatted with all 'printing' stuffs (e.g. page-breaks, header, footer, etc.)
- I convert this HTML into pdf using Pisa
This process is ok but it is slow (expecially when dealing with long tables) and I must use HTML/CSS according to Pisa features/limitations.
The question is: is this the right way to generate pdf from a web application (i.e. create HTML and then convert it to pdf) or there is a more direct way, that is "write" the pdf with a more suitable language?