aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-08-04 12:00:49 +0200
committerneodarz <neodarz@neodarz.net>2019-08-04 12:00:49 +0200
commitb866b76fced6b849fe25d156b2527e4a92a304ce (patch)
tree91be769d75d7f59395abe1f4c1842e9cc376bc21 /bin
parent939d6c842944f647868cb5f4685820154522e383 (diff)
downloadresumejson_converter-b866b76fced6b849fe25d156b2527e4a92a304ce.tar.xz
resumejson_converter-b866b76fced6b849fe25d156b2527e4a92a304ce.zip
Add ability to change pdf path
Diffstat (limited to '')
-rwxr-xr-xbin/resumejson_converter3
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()