Commit 55d90bd6 authored by Arnaud Fontaine's avatar Arnaud Fontaine

CUSTOM: Make wkhtmltopdf debugging easier.

parent 55549ded
...@@ -67,13 +67,13 @@ class Handler(object): ...@@ -67,13 +67,13 @@ class Handler(object):
def convert(self, destination_format=None, **kw): def convert(self, destination_format=None, **kw):
"""Convert a image""" """Convert a image"""
logger.debug("wkhtmltopdf convert: %s > %s" % (self.file.source_format, destination_format))
output_path = self.makeTempFile(destination_format) output_path = self.makeTempFile(destination_format)
command = self.makeWkhtmltopdfCommandList( command = self.makeWkhtmltopdfCommandList(
self.convertPathToUrl(self.file.getUrl()), self.convertPathToUrl(self.file.getUrl()),
output_path, output_path,
conversion_kw=kw, conversion_kw=kw,
) )
logger.debug("wkhtmltopdf convert: %s" % ' '.join(command))
stdout, stderr = Popen( stdout, stderr = Popen(
command, command,
stdout=PIPE, stdout=PIPE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment