diff options
author | neodarz <neodarz@neodarz.net> | 2019-08-04 12:00:49 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-08-04 12:00:49 +0200 |
commit | b866b76fced6b849fe25d156b2527e4a92a304ce (patch) | |
tree | 91be769d75d7f59395abe1f4c1842e9cc376bc21 | |
parent | 939d6c842944f647868cb5f4685820154522e383 (diff) | |
download | resumejson_converter-b866b76fced6b849fe25d156b2527e4a92a304ce.tar.xz resumejson_converter-b866b76fced6b849fe25d156b2527e4a92a304ce.zip |
Add ability to change pdf path
-rwxr-xr-x | bin/resumejson_converter | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/resumejson_converter b/bin/resumejson_converter index 4b29ae8..b848385 100755 --- a/bin/resumejson_converter +++ b/bin/resumejson_converter @@ -16,6 +16,7 @@ def main(): parser.add_argument("--resume", help="JSON Resume file to transform", default="resume.json") parser.add_argument("--template", help="Specifie an jijna2 template file", default="templates/template.html") parser.add_argument("--html", help="Html file output") + parser.add_argument("--pdf", help="Pdf file output", default="out/out.pdf") parser.add_argument("--nopdf", help="Don't generate pdf", action="store_true") args = parser.parse_args() @@ -23,7 +24,7 @@ def main(): html = generate_html(resume, args.template, args.html) if not args.nopdf: - generate_pdf(html) + generate_pdf(html, args.pdf) if __name__ == "__main__": main() |