File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 33 History
44-------
55
6+ v0.36.0 (2017-06-13)
7+ ....................
8+ * allow alternative wkhtmltopdf binary via ``WKHTMLTOPDF_PATH `` environment variable
9+
610v0.35.0 (2017-06-06)
711....................
812* add docker auto tagging
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3.6
22"""
3- pydf pdf generation
3+ pydf
4+
5+ pdf generation in docker.
46
57To generate PDF POST (or GET with data if possible) you HTML data to /generate.pdf.
68
@@ -39,8 +41,8 @@ async def generate(request):
3941 config [k [4 :].lower ()] = v .lower ()
4042 data = await request .read ()
4143 if not data :
42- logger .info ('Request with no PDF data' )
43- raise web .HTTPBadRequest (text = '400: no PDF data provided \n ' )
44+ logger .info ('Request with no body data' )
45+ raise web .HTTPBadRequest (text = '400: no HTML data to convert to PDF in request body \n ' )
4446 try :
4547 pdf_content = await app ['apydf' ].generate_pdf (data .decode (), ** config )
4648 except RuntimeError as e :
Original file line number Diff line number Diff line change 11from distutils .version import StrictVersion
22
3- VERSION = StrictVersion ('0.35 .0' )
3+ VERSION = StrictVersion ('0.36 .0' )
You can’t perform that action at this time.
0 commit comments