Commit a3c044e0 authored by Arnaud Fontaine's avatar Arnaud Fontaine

TextDocument: Support wkhtmltopdf conversion_kw.

parent 3551d47d
......@@ -153,6 +153,10 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
# PortalTransforms does not accept empty values for 'encoding' parameter
if charset:
kw['charset'] = convert_kw['encoding'] = charset
try:
convert_kw['conversion_kw'] = kw['conversion_kw']
except KeyError:
pass
if not self.hasConversion(**kw):
portal_transforms = portal.portal_transforms
filename = self.getFilename()
......
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