Added font style to generated pdf
This commit is contained in:
parent
9fc243c93d
commit
3ca6e75634
1 changed files with 3 additions and 2 deletions
|
@ -61,8 +61,9 @@ class HttpWebpagePlugin(Plugin):
|
||||||
raise RuntimeError("Unable to parse content for {}: {}".format(url, response.reason))
|
raise RuntimeError("Unable to parse content for {}: {}".format(url, response.reason))
|
||||||
|
|
||||||
title = response.json()['title']
|
title = response.json()['title']
|
||||||
content = '<h1>{title}</h1>{content}'.\
|
content = '<body style="{body_style}"><h1>{title}</h1>{content}</body>'.\
|
||||||
format(title=title, content=response.json()['content'])
|
format(title=title, content=response.json()['content'],
|
||||||
|
body_style='font-size: 15px; font-family: Verdana, Geneva, sans-serif')
|
||||||
|
|
||||||
if not outfile:
|
if not outfile:
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue