Merge pull request #5 from RealOrangeOne/fix-stylesheet
Specify css location correctly
This commit is contained in:
commit
c0f94ed22d
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,8 @@ PDF_OPTIONS = {
|
||||||
"footer-html": FOOTER_FILE,
|
"footer-html": FOOTER_FILE,
|
||||||
"footer-spacing": 5,
|
"footer-spacing": 5,
|
||||||
"header-spacing": 5,
|
"header-spacing": 5,
|
||||||
|
|
||||||
|
"user-style-sheet": STYLE_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,6 +36,5 @@ def export_pdf(content, config):
|
||||||
content,
|
content,
|
||||||
os.path.join(os.path.abspath(config['output_dir']), 'output.pdf'),
|
os.path.join(os.path.abspath(config['output_dir']), 'output.pdf'),
|
||||||
options=PDF_OPTIONS,
|
options=PDF_OPTIONS,
|
||||||
css=STYLE_FILE,
|
|
||||||
cover=OUTPUT_COVER_FILE
|
cover=OUTPUT_COVER_FILE
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue