merged with django for pdfprint