From b866b76fced6b849fe25d156b2527e4a92a304ce Mon Sep 17 00:00:00 2001 From: neodarz Date: Sun, 4 Aug 2019 12:00:49 +0200 Subject: Add ability to change pdf path --- bin/resumejson_converter | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1